mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* feat add chainsaw tests for pod security and exceptions Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> * fix: enable ProcMountType in the kind config Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> --------- Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
39 lines
766 B
YAML
39 lines
766 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
labels:
|
|
run: test-pod
|
|
name: test-pod
|
|
namespace: default
|
|
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: false
|