blob: cfe6101aa9b77ffecfe9d0a46acfc311783863de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: ghcr.io/chrislovering/psql_extended:15
imagePullPolicy: "Always"
ports:
- name: postgres
containerPort: 5432
envFrom:
- secretRef:
name: postgres-env
args: ["-c", "config_file=/etc/postgresql/postgresql.conf"]
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
subPath: pgdata
- name: postgres-config
mountPath: /etc/postgresql
- name: dshm
mountPath: /dev/shm
volumes:
- name: postgres-data
persistentVolumeClaim:
claimName: postgres-storage
- name: postgres-config
configMap:
name: postgres-config
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 2Gi
|