zammad-docker-compose/kubernetes/43_deployment_postgesql.yaml
André Bauer ce474aabef - switched to single zammad pod to get rid of nfs container in kubernetes
- added nginx configmap
- switched to statefulset for es
- removed nginx & nfs container builds
- switched to postgresql 10.1 (manual update needed)
2017-12-02 12:58:46 +01:00

41 lines
977 B
YAML

apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: zammad-postgresql
namespace: zammad
spec:
replicas: 1
revisionHistoryLimit: 1
template:
metadata:
labels:
component: database
app: postgresql
spec:
terminationGracePeriodSeconds: 10
volumes:
- name: zammad-postgresql
persistentVolumeClaim:
claimName: zammad-postgresql
containers:
- name: zammad-postgresql
image: monotek/zammad-docker-compose:zammad-postgresql
ports:
- name: postgresql
containerPort: 5432
imagePullPolicy: Always
volumeMounts:
- name: zammad-postgresql
mountPath: /var/lib/postgresql
readinessProbe:
tcpSocket:
port: 5432
initialDelaySeconds: 60
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 5432
initialDelaySeconds: 60
periodSeconds: 10