atform.apps.mattermost-db.4.0.37.source-code.deployment.yml Maven / Gradle / Ivy
metadata:
name: mattermost-db
labels:
service: mattermost-db
spec:
replicas: 1
selector:
service: mattermost-db
template:
metadata:
labels:
service: mattermost-db
spec:
containers:
- name: mattermost-db
image: registry.centos.org/postgresql/postgresql:9.6
imagePullPolicy: IfNotPresent
env:
- name: POSTGRESQL_DATABASE
value: mattermost
- name: POSTGRESQL_PASSWORD
value: mmuser_password
- name: POSTGRESQL_USER
value: mmuser
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
exec:
command:
- sh
- -c
- exec pg_isready --host $POD_IP
initialDelaySeconds: 60
timeoutSeconds: 5
failureThreshold: 6
readinessProbe:
exec:
command:
- sh
- -c
- exec pg_isready --host $POD_IP
initialDelaySeconds: 20
timeoutSeconds: 3
periodSeconds: 5
ports:
- containerPort: 5432
protocol: TCP
volumeMounts:
- mountPath: /var/lib/pgsql
name: mattermost-db-postgresql-data
readOnly: false
volumes:
- name: mattermost-db-postgresql-data
persistentVolumeClaim:
claimName: mattermost-db-postgresql-data
© 2015 - 2025 Weber Informatics LLC | Privacy Policy