2017-11-26 20:25:57 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: zammad
|
|
|
|
namespace: zammad
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2017-12-02 11:58:46 +00:00
|
|
|
revisionHistoryLimit: 1
|
2017-11-26 20:25:57 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: zammad
|
|
|
|
component: services
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 10
|
2017-12-02 11:58:46 +00:00
|
|
|
volumes:
|
|
|
|
- name: zammad
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: zammad
|
|
|
|
- name: nginx-configmap
|
|
|
|
configMap:
|
|
|
|
name: nginx-configmap
|
|
|
|
items:
|
|
|
|
- key: config
|
|
|
|
path: default
|
2017-11-26 20:25:57 +00:00
|
|
|
|
|
|
|
initContainers:
|
|
|
|
- name: zammad-init
|
|
|
|
image: monotek/zammad-docker-compose:zammad
|
|
|
|
args: [ "zammad-init" ]
|
|
|
|
imagePullPolicy: Always
|
2017-12-02 11:58:46 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: zammad
|
|
|
|
mountPath: /opt/zammad
|
2017-11-26 20:25:57 +00:00
|
|
|
|
|
|
|
containers:
|
2017-12-02 11:58:46 +00:00
|
|
|
- name: zammad-nginx
|
2017-11-26 20:25:57 +00:00
|
|
|
image: monotek/zammad-docker-compose:zammad
|
2017-12-02 11:58:46 +00:00
|
|
|
args: [ "zammad-nginx" ]
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: nginx
|
2017-11-26 20:25:57 +00:00
|
|
|
imagePullPolicy: Always
|
2017-12-02 11:58:46 +00:00
|
|
|
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
|
2017-11-26 20:25:57 +00:00
|
|
|
|
|
|
|
- name: zammad-railsserver
|
|
|
|
image: monotek/zammad-docker-compose:zammad
|
|
|
|
args: ["zammad-railsserver"]
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- name: railsserver
|
|
|
|
containerPort: 3000
|
2017-12-02 11:58:46 +00:00
|
|
|
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: monotek/zammad-docker-compose:zammad
|
|
|
|
args: [ "zammad-scheduler" ]
|
|
|
|
imagePullPolicy: Always
|
|
|
|
volumeMounts:
|
|
|
|
- name: zammad
|
|
|
|
mountPath: /opt/zammad
|
2017-11-26 20:25:57 +00:00
|
|
|
|
|
|
|
- name: zammad-websocket
|
|
|
|
image: monotek/zammad-docker-compose:zammad
|
|
|
|
args: [ "zammad-websocket" ]
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- name: websocket
|
|
|
|
containerPort: 6042
|
2017-12-02 11:58:46 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: zammad
|
|
|
|
mountPath: /opt/zammad
|
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 6042
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
periodSeconds: 10
|
|
|
|
livenessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 6042
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
periodSeconds: 10
|