-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube.yaml
50 lines (50 loc) · 1003 Bytes
/
kube.yaml
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
47
48
49
50
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2024-07-08T00:00:00Z"
labels:
app: unmapped-census
name: unmapped-census
spec:
containers:
- name: postgres
image: docker.io/postgis/postgis:16-3.4
args:
- postgres
- -c
- logging_collector=true
env:
- name: POSTGRES_PASSWORD
value: postgres
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgresql-data
- name: run
image: unmapped_census:latest
command:
- ./run.sh
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /app
name: app
volumes:
- hostPath:
path: ./data/postgres
type: Directory
name: postgresql-data
- hostPath:
path: .
type: Directory
name: app
restartPolicy: Never