zammad-docker-compose/kubernetes/54_statefulset_nginx.yaml

35 lines
767 B
YAML
Raw Normal View History

2017-10-24 13:57:42 +00:00
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
2017-11-21 18:19:50 +00:00
image: zammad/zammad-docker-compose:zammad-nginx
2017-10-24 13:57:42 +00:00
ports:
- containerPort: 80
name: nginx
- containerPort: 6042
name: nginx-ws
2017-10-24 13:57:42 +00:00
imagePullPolicy: Always
volumeMounts:
- mountPath: /home/zammad
2017-11-20 22:59:01 +00:00
name: zammad-home