zammad-docker-compose/kubernetes/55_statefulset_scheduler.yaml
2017-11-20 23:59:01 +01:00

33 lines
755 B
YAML

apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: zammad-scheduler
namespace: zammad
labels:
component: scheduler
app: zammad
spec:
serviceName: zammad-scheduler
replicas: 1
template:
metadata:
labels:
component: scheduler
app: zammad
spec:
terminationGracePeriodSeconds: 10
volumes:
- name: zammad-home
persistentVolumeClaim:
claimName: zammad-home
containers:
- name: zammad-scheduler
image: monotek/zammad-docker-compose:zammad
args: [ "zammad-scheduler" ]
imagePullPolicy: Always
securityContext:
privileged: true
volumeMounts:
- mountPath: /home/zammad
name: zammad-home