Skip to content

Commit 8cdd2f5

Browse files
authored
Fix PerformanceTests jobs (#36315)
* Fix permission issue * Change mount path
1 parent c84f28f commit 8cdd2f5

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.test-infra/kubernetes/postgres/postgres-service-for-local-dev.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,26 @@ spec:
4343
labels:
4444
name: postgres
4545
spec:
46+
securityContext:
47+
fsGroup: 999
4648
containers:
4749
- name: postgres
4850
image: postgres
4951
env:
5052
- name: POSTGRES_PASSWORD
5153
value: uuinkks
5254
- name: PGDATA
53-
value: /var/lib/postgresql/data/pgdata
55+
value: /pgdata/data
5456
ports:
5557
- containerPort: 5432
58+
securityContext:
59+
runAsNonRoot: true
60+
runAsUser: 999
61+
runAsGroup: 999
62+
allowPrivilegeEscalation: false
63+
volumeMounts:
64+
- name: pgdata
65+
mountPath: /pgdata
66+
volumes:
67+
- name: pgdata
68+
emptyDir: {}

0 commit comments

Comments
 (0)