zammad-docker-compose/kubernetes/43_deployment_postgesql.yaml

41 lines
977 B
YAML
Raw Normal View History

2017-10-24 13:57:42 +00:00
apiVersion: apps/v1beta1
kind: Deployment
2017-10-24 13:57:42 +00:00
metadata:
name: zammad-postgresql
namespace: zammad
spec:
replicas: 1
revisionHistoryLimit: 1
2017-10-24 13:57:42 +00:00
template:
metadata:
labels:
component: database
app: postgresql
spec:
terminationGracePeriodSeconds: 10
volumes:
- name: zammad-postgresql
persistentVolumeClaim:
claimName: zammad-postgresql
2017-10-24 13:57:42 +00:00
containers:
- name: zammad-postgresql
image: monotek/zammad-docker-compose:zammad-postgresql
2017-10-24 13:57:42 +00:00
ports:
- name: postgresql
containerPort: 5432
2017-10-24 13:57:42 +00:00
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