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

30 lines
692 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
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