zammad-docker-compose/kubernetes/40_deployment_zammad.yaml
André Bauer b3fb17c6ad - changed tmp file var to use full path
- switched back to postgresql 9.6 (10.x with next release)
- switched back to zammad image repos
- switched back to stable branch (dalli gem now included)
2017-12-07 15:20:21 +01:00

113 lines
2.8 KiB
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: zammad
namespace: zammad
spec:
replicas: 1
revisionHistoryLimit: 1
template:
metadata:
labels:
app: zammad
component: services
spec:
terminationGracePeriodSeconds: 10
volumes:
- name: zammad
persistentVolumeClaim:
claimName: zammad
- name: nginx-configmap
configMap:
name: nginx-configmap
items:
- key: config
path: default
initContainers:
- name: zammad-init
image: zammad/zammad-docker-compose:zammad
args: [ "zammad-init" ]
imagePullPolicy: Always
volumeMounts:
- name: zammad
mountPath: /opt/zammad
containers:
- name: zammad-nginx
image: zammad/zammad-docker-compose:zammad
args: [ "zammad-nginx" ]
ports:
- containerPort: 80
name: nginx
imagePullPolicy: Always
volumeMounts:
- name: zammad
mountPath: /opt/zammad
- name: nginx-configmap
mountPath: /etc/nginx/sites-enabled
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 60
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 60
periodSeconds: 10
- name: zammad-railsserver
image: zammad/zammad-docker-compose:zammad
args: ["zammad-railsserver"]
imagePullPolicy: Always
ports:
- name: railsserver
containerPort: 3000
volumeMounts:
- name: zammad
mountPath: /opt/zammad
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 90
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 90
periodSeconds: 10
- name: zammad-scheduler
image: zammad/zammad-docker-compose:zammad
args: [ "zammad-scheduler" ]
imagePullPolicy: Always
volumeMounts:
- name: zammad
mountPath: /opt/zammad
- name: zammad-websocket
image: zammad/zammad-docker-compose:zammad
args: [ "zammad-websocket" ]
imagePullPolicy: Always
ports:
- name: websocket
containerPort: 6042
volumeMounts:
- name: zammad
mountPath: /opt/zammad
readinessProbe:
tcpSocket:
port: 6042
initialDelaySeconds: 60
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 6042
initialDelaySeconds: 60
periodSeconds: 10