mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-20 23:16:49 +00:00
Add Kyverno PolicyExceptions for third-party charts
ArgoCD, NetBird operator, and Scylla Manager are upstream Helm charts that don't set resource limits, probes, drop-all capabilities, or disable SA token automount. These audit-mode policy violations inflated the cumulative Prometheus failure counter to ~3800. - argocd: exempt from require-resource-limits, require-probes - netbird-operator: exempt from require-resource-limits, disallow-automount-sa-token, require-probes - scylla-manager: exempt from require-drop-all-capabilities, disallow-automount-sa-token Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
0d39bcddc9
commit
b795f5aa8f
@@ -0,0 +1,27 @@
|
|||||||
|
# ArgoCD upstream Helm chart does not set resource limits or probes on
|
||||||
|
# several components. These are audit-mode policies and ArgoCD is a
|
||||||
|
# third-party chart we don't control.
|
||||||
|
apiVersion: kyverno.io/v2
|
||||||
|
kind: PolicyException
|
||||||
|
metadata:
|
||||||
|
name: argocd-exemption
|
||||||
|
namespace: kyverno
|
||||||
|
spec:
|
||||||
|
exceptions:
|
||||||
|
- policyName: require-resource-limits
|
||||||
|
ruleNames:
|
||||||
|
- require-limits
|
||||||
|
- autogen-require-limits
|
||||||
|
- policyName: require-probes
|
||||||
|
ruleNames:
|
||||||
|
- require-probes
|
||||||
|
match:
|
||||||
|
any:
|
||||||
|
- resources:
|
||||||
|
kinds:
|
||||||
|
- Deployment
|
||||||
|
- StatefulSet
|
||||||
|
- ReplicaSet
|
||||||
|
- Pod
|
||||||
|
namespaces:
|
||||||
|
- argocd
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# NetBird operator upstream chart does not set resource limits and
|
||||||
|
# automounts the SA token for Kubernetes API access.
|
||||||
|
apiVersion: kyverno.io/v2
|
||||||
|
kind: PolicyException
|
||||||
|
metadata:
|
||||||
|
name: netbird-operator-exemption
|
||||||
|
namespace: kyverno
|
||||||
|
spec:
|
||||||
|
exceptions:
|
||||||
|
- policyName: require-resource-limits
|
||||||
|
ruleNames:
|
||||||
|
- require-limits
|
||||||
|
- autogen-require-limits
|
||||||
|
- policyName: disallow-automount-sa-token
|
||||||
|
ruleNames:
|
||||||
|
- validate-automount
|
||||||
|
- autogen-validate-automount
|
||||||
|
- policyName: require-probes
|
||||||
|
ruleNames:
|
||||||
|
- require-probes
|
||||||
|
match:
|
||||||
|
any:
|
||||||
|
- resources:
|
||||||
|
kinds:
|
||||||
|
- Deployment
|
||||||
|
- ReplicaSet
|
||||||
|
- Pod
|
||||||
|
namespaces:
|
||||||
|
- netbird-operator
|
||||||
|
- netbird
|
||||||
|
names:
|
||||||
|
- netbird-operator*
|
||||||
|
- netbird-cluster-router*
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# Scylla Manager and ScyllaDB upstream charts do not drop all
|
||||||
|
# capabilities and automount the SA token for cluster management.
|
||||||
|
apiVersion: kyverno.io/v2
|
||||||
|
kind: PolicyException
|
||||||
|
metadata:
|
||||||
|
name: scylla-exemption
|
||||||
|
namespace: kyverno
|
||||||
|
spec:
|
||||||
|
exceptions:
|
||||||
|
- policyName: require-drop-all-capabilities
|
||||||
|
ruleNames:
|
||||||
|
- require-drop-all
|
||||||
|
- autogen-require-drop-all
|
||||||
|
- policyName: disallow-automount-sa-token
|
||||||
|
ruleNames:
|
||||||
|
- validate-automount
|
||||||
|
- autogen-validate-automount
|
||||||
|
match:
|
||||||
|
any:
|
||||||
|
- resources:
|
||||||
|
kinds:
|
||||||
|
- Deployment
|
||||||
|
- StatefulSet
|
||||||
|
- ReplicaSet
|
||||||
|
- Pod
|
||||||
|
namespaces:
|
||||||
|
- scylla-manager
|
||||||
Reference in New Issue
Block a user