zammad-docker-compose/kubernetes/80_svc.yaml
André Bauer ce696bad8b
added init container (installation / update)... (#2)
- added memcached container (currently develop branch needed)
- put all zammad services in one kubernetes pod to be able to use empty dir volume for tmp
- switched to kubernetes deployments
- switched to ReadWriteOnce kubernetes volume claims
- added init container to elasticsearch & zammad kubernetes deployments
- added IMAGE_REPO var for docker compose to .env file
- run nginx from zammad container (preparation for stateless updates)
- removed docker-compose-build.yml
- use private docker repos in compose & kubernetes
- change compose volume names
2017-11-26 21:25:57 +01:00

112 lines
1.6 KiB
YAML

---
kind: Service
apiVersion: v1
metadata:
name: zammad
namespace: zammad
labels:
app: zammad
component: services
spec:
ports:
- name: railsserver
port: 3000
- name: websocket
port: 6042
selector:
app: zammad
component: services
type: NodePort
---
kind: Service
apiVersion: v1
metadata:
name: zammad-elasticsearch
namespace: zammad
labels:
app: elasticsearch
component: searchindex
spec:
ports:
- name: elasticsearch
port: 9200
selector:
app: elasticsearch
component: searchindex
type: NodePort
---
kind: Service
apiVersion: v1
metadata:
name: zammad-memcached
namespace: zammad
labels:
app: memcached
component: cache
spec:
ports:
- name: memcached
port: 11211
selector:
app: memcached
component: cache
type: NodePort
---
kind: Service
apiVersion: v1
metadata:
name: zammad-nfs
namespace: zammad
labels:
app: nfs
component: networkstorage
spec:
ports:
- name: nfsserver
port: 2049
- name: rpc
port: 111
selector:
app: nfs
component: networkstorage
type: NodePort
---
kind: Service
apiVersion: v1
metadata:
name: zammad-nginx
namespace: zammad
labels:
app: nginx
component: webserver
spec:
ports:
- name: nginx
port: 80
selector:
app: nginx
component: webserver
type: NodePort
---
kind: Service
apiVersion: v1
metadata:
name: zammad-postgresql
namespace: zammad
labels:
app: postgresql
component: database
spec:
ports:
- name: postgresql
port: 5432
selector:
app: postgresql
component: database
type: NodePort