2017-10-24 13:57:42 +00:00
|
|
|
apiVersion: apps/v1beta1
|
2017-11-26 20:25:57 +00:00
|
|
|
kind: Deployment
|
2017-10-24 13:57:42 +00:00
|
|
|
metadata:
|
|
|
|
name: zammad-postgresql
|
|
|
|
namespace: zammad
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2017-12-02 11:58:46 +00:00
|
|
|
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-11-26 20:25:57 +00:00
|
|
|
|
2017-10-24 13:57:42 +00:00
|
|
|
containers:
|
|
|
|
- name: zammad-postgresql
|
2017-11-26 20:25:57 +00:00
|
|
|
image: monotek/zammad-docker-compose:zammad-postgresql
|
2017-10-24 13:57:42 +00:00
|
|
|
ports:
|
2017-11-26 20:25:57 +00:00
|
|
|
- name: postgresql
|
|
|
|
containerPort: 5432
|
2017-10-24 13:57:42 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
volumeMounts:
|
2017-11-26 20:25:57 +00:00
|
|
|
- name: zammad-postgresql
|
|
|
|
mountPath: /var/lib/postgresql
|
2017-12-02 11:58:46 +00:00
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 5432
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
periodSeconds: 10
|
|
|
|
livenessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 5432
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
periodSeconds: 10
|