runAsNonRoot at container level
This commit is contained in:
@@ -24,6 +24,7 @@ spec:
|
|||||||
- name: probe-exec
|
- name: probe-exec
|
||||||
image: busybox:1.36
|
image: busybox:1.36
|
||||||
securityContext:
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ spec:
|
|||||||
- name: probe-db
|
- name: probe-db
|
||||||
image: postgres:18-alpine
|
image: postgres:18-alpine
|
||||||
securityContext:
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
|
|||||||
Reference in New Issue
Block a user