zammad-docker-compose/kubernetes/54_statefulset_nginx.yaml
2017-10-25 11:48:00 +02:00

34 lines
766 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