We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c84f28f commit 8cdd2f5Copy full SHA for 8cdd2f5
1 file changed
.test-infra/kubernetes/postgres/postgres-service-for-local-dev.yml
@@ -43,13 +43,26 @@ spec:
43
labels:
44
name: postgres
45
spec:
46
+ securityContext:
47
+ fsGroup: 999
48
containers:
49
- name: postgres
50
image: postgres
51
env:
52
- name: POSTGRES_PASSWORD
53
value: uuinkks
54
- name: PGDATA
- value: /var/lib/postgresql/data/pgdata
55
+ value: /pgdata/data
56
ports:
57
- containerPort: 5432
58
59
+ runAsNonRoot: true
60
+ runAsUser: 999
61
+ runAsGroup: 999
62
+ allowPrivilegeEscalation: false
63
+ volumeMounts:
64
+ - name: pgdata
65
+ mountPath: /pgdata
66
+ volumes:
67
68
+ emptyDir: {}
0 commit comments