mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: test-pod
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: alpine:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: primary
|
||
|
securityContext:
|
||
|
allowPrivilegeEscalation: false
|
||
|
capabilities:
|
||
|
drop:
|
||
|
- ALL
|
||
|
runAsGroup: 1000
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 1000
|
||
|
seccompProfile:
|
||
|
type: RuntimeDefault
|
||
|
initContainers:
|
||
|
- image: alpine:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: init1
|
||
|
securityContext:
|
||
|
allowPrivilegeEscalation: false
|
||
|
capabilities:
|
||
|
add:
|
||
|
- NET_ADMIN
|
||
|
- NET_RAW
|
||
|
drop:
|
||
|
- ALL
|
||
|
privileged: false
|
||
|
readOnlyRootFilesystem: false
|
||
|
runAsGroup: 10001
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 10001
|
||
|
seccompProfile:
|
||
|
type: RuntimeDefault
|
||
|
- image: busybox:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: init2
|
||
|
securityContext:
|
||
|
allowPrivilegeEscalation: false
|
||
|
capabilities:
|
||
|
add:
|
||
|
- SYS_TIME
|
||
|
drop:
|
||
|
- ALL
|
||
|
privileged: false
|
||
|
readOnlyRootFilesystem: true
|
||
|
runAsGroup: 10002
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 10002
|
||
|
seccompProfile:
|
||
|
type: RuntimeDefault
|