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

34 lines
766 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
image: zammad/zammad-docker-compose:zammad-nginx
ports:
- containerPort: 80
name: nginx
- containerPort: 6042
name: nginx-ws
2017-10-24 13:57:42 +00:00
imagePullPolicy: Always
volumeMounts:
- mountPath: /home/zammad
name: zammad-home