added k8s manifests

This commit is contained in:
Ryan Cuda
2026-04-15 15:50:09 -07:00
parent 4f46f21eb8
commit 0b5665f06c
9 changed files with 262 additions and 0 deletions

53
postgres-deployment.yaml Normal file
View File

@@ -0,0 +1,53 @@
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