1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/test/conformance/chainsaw/exceptions/psa-run-as-non-root/bad-pod-02.yaml

39 lines
744 B
YAML
Raw Normal View History

apiVersion: v1
kind: Pod
metadata:
labels:
run: test-pod
name: test-pod
spec:
containers:
- image: nginx
name: test-pod
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: 50m
memory: 256Mi
securityContext:
allowPrivilegeEscalation: false
initContainers:
- args:
- istio-iptables
env:
- name: TERMINATION_DRAIN_DURATION_SECONDS
value: "30"
image: some.registry/istio/proxyv2:1.18.7
imagePullPolicy: IfNotPresent
name: istio-init
resources:
limits:
cpu: "2"
memory: 1Gi
requests:
cpu: 10m
memory: 40Mi
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true