zammad-docker-compose/kubernetes/54_statefulset_nginx.yaml
2017-11-21 19:19:50 +01:00

35 lines
767 B
YAML

apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: zammad-nginx
namespace: zammad
labels:
component: nginx
app: zammad
spec:
serviceName: zammad-nginx
replicas: 1
template:
metadata:
labels:
component: nginx
app: zammad
spec:
terminationGracePeriodSeconds: 10
volumes:
- name: zammad-home
persistentVolumeClaim:
claimName: zammad-home
containers:
- name: zammad-nginx
image: zammad/zammad-docker-compose:zammad-nginx
ports:
- containerPort: 80
name: nginx
- containerPort: 6042
name: nginx-ws
imagePullPolicy: Always
volumeMounts:
- mountPath: /home/zammad
name: zammad-home