zammad-docker-compose/kubernetes/50_statefulset_postgesql.yaml

33 lines
778 B
YAML
Raw Normal View History

2017-10-24 13:57:42 +00:00
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: zammad-postgresql
namespace: zammad
labels:
component: database
app: postgresql
spec:
serviceName: zammad-postgresql
replicas: 1
template:
metadata:
labels:
component: database
app: postgresql
spec:
terminationGracePeriodSeconds: 10
volumes:
- name: zammad-postgresql
persistentVolumeClaim:
claimName: zammad-postgresql
containers:
- name: zammad-postgresql
2017-11-21 18:19:50 +00:00
image: zammad/zammad-docker-compose:zammad-postgresql
2017-10-24 13:57:42 +00:00
ports:
- containerPort: 5432
name: postgresql
imagePullPolicy: Always
volumeMounts:
- mountPath: /var/lib/postgresql
2017-11-20 22:59:01 +00:00
name: zammad-postgresql