54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
name: postgres
|
|
namespace: mattermost
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app: postgres
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: postgres
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: POSTGRESQL_USER
|
|
value: mattermost
|
|
- name: POSTGRESQL_PASSWORD
|
|
value: mattermost
|
|
- name: POSTGRESQL_DATABASE
|
|
value: mattermost
|
|
image: registry.redhat.io/rhel9/postgresql-15:latest
|
|
imagePullPolicy: Always
|
|
name: postgres
|
|
ports:
|
|
- containerPort: 5432
|
|
protocol: TCP
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /var/lib/pgsql/data
|
|
name: postgres
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: postgres
|
|
persistentVolumeClaim:
|
|
claimName: postgres
|