mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 05:26:49 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
apiVersion: kyverno.io/v1
|
||||
kind: ClusterPolicy
|
||||
metadata:
|
||||
name: require-probes
|
||||
annotations:
|
||||
policies.kyverno.io/title: Require Liveness and Readiness Probes
|
||||
policies.kyverno.io/category: Zero Trust
|
||||
policies.kyverno.io/severity: low
|
||||
spec:
|
||||
validationFailureAction: Audit
|
||||
background: true
|
||||
rules:
|
||||
- name: require-probes
|
||||
match:
|
||||
any:
|
||||
- resources:
|
||||
kinds:
|
||||
- Deployment
|
||||
- StatefulSet
|
||||
exclude:
|
||||
any:
|
||||
- resources:
|
||||
namespaces:
|
||||
- kube-system
|
||||
- kyverno
|
||||
- tetragon
|
||||
- rook-ceph
|
||||
- argocd
|
||||
- cert-manager
|
||||
- cnpg-system
|
||||
- envoy-gateway-system
|
||||
- external-secrets
|
||||
- istio-system
|
||||
- kiali-operator
|
||||
- mariadb-system
|
||||
- prometheus
|
||||
- redis-operator
|
||||
- reloader
|
||||
- scylla-operator
|
||||
- vault
|
||||
- gitlab
|
||||
- grafana
|
||||
- guacamole
|
||||
- nextcloud
|
||||
- scylla-manager
|
||||
validate:
|
||||
message: "Liveness and readiness probes are required for all containers."
|
||||
pattern:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- livenessProbe:
|
||||
periodSeconds: ">0"
|
||||
readinessProbe:
|
||||
periodSeconds: ">0"
|
||||
Reference in New Issue
Block a user