archives added
This commit is contained in:
33
archives/matrix/postgres-stateful.yaml
Normal file
33
archives/matrix/postgres-stateful.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: postgres-statefulset
|
||||
labels:
|
||||
run: matrix-postgres
|
||||
spec:
|
||||
serviceName: "matrix-postgres"
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: matrix-postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: matrix-postgres
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:12
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: postgres-configuration
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
name: postgresdb
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: matrix-postgres
|
||||
Reference in New Issue
Block a user