mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
35 lines
617 B
YAML
35 lines
617 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: bad-pod-1
|
||
|
namespace: staging-ns
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: busybox1
|
||
|
image: busybox
|
||
|
args:
|
||
|
- sleep
|
||
|
- 1d
|
||
|
securityContext:
|
||
|
seccompProfile:
|
||
|
type: RuntimeDefault
|
||
|
runAsNonRoot: true
|
||
|
allowPrivilegeEscalation: true
|
||
|
capabilities:
|
||
|
drop:
|
||
|
- ALL
|
||
|
initContainers:
|
||
|
- name: busybox2
|
||
|
image: busybox
|
||
|
args:
|
||
|
- sleep
|
||
|
- 1d
|
||
|
securityContext:
|
||
|
seccompProfile:
|
||
|
type: RuntimeDefault
|
||
|
runAsNonRoot: true
|
||
|
allowPrivilegeEscalation: true
|
||
|
capabilities:
|
||
|
drop:
|
||
|
- ALL
|