mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
ace5b59003
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
38 lines
670 B
YAML
38 lines
670 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: bad-pod-3
|
|
namespace: staging-ns
|
|
spec:
|
|
containers:
|
|
- name: nginx1
|
|
image: nginx
|
|
args:
|
|
- sleep
|
|
- 1d
|
|
securityContext:
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
runAsNonRoot: true
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
add:
|
|
- foo
|
|
ephemeralContainers:
|
|
- name: nginx2
|
|
image: nginx
|
|
args:
|
|
- sleep
|
|
- 1d
|
|
securityContext:
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
runAsNonRoot: true
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
add:
|
|
- baz
|