Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Policy Exception from policy-exc-req-c5401y2318j #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions policy-exc-req-c5401y2318j.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
labels:
cleanup.kyverno.io/ttl: 2024-11-27T203803Z
name: policy-exc-req-c5401y2318j-0
namespace: kyverno
spec:
exceptions:
- policyName: disallow-privilege-escalation
ruleNames:
- autogen-privilege-escalation
- privilege-escalation
- policyName: require-run-as-nonroot
ruleNames:
- autogen-run-as-non-root
- run-as-non-root
- policyName: disallow-host-process
ruleNames:
- autogen-host-process-containers
- host-process-containers
- policyName: restrict-volume-types
ruleNames:
- restricted-volumes
- autogen-restricted-volumes
- policyName: disallow-privileged-containers
ruleNames:
- privileged-containers
- autogen-privileged-containers
- policyName: disallow-host-namespaces
ruleNames:
- autogen-host-namespaces
- host-namespaces
- policyName: disallow-host-path
ruleNames:
- host-path
- autogen-host-path
- policyName: restrict-seccomp-strict
ruleNames:
- autogen-check-seccomp-strict
- check-seccomp-strict
- policyName: disallow-capabilities-strict
ruleNames:
- require-drop-all
- autogen-require-drop-all
match:
any:
- resources:
kinds:
- ReplicaSet
names:
- nginx-deployment-75b4648b7c
namespaces:
- prod
- resources:
kinds:
- Pod
names:
- nginx-deployment-75b4648b7c-pm9l8
namespaces:
- prod
- resources:
kinds:
- Deployment
names:
- nginx-deployment
namespaces:
- prod