1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/test/policy/validate/check_probe_intervals.yaml
2019-11-13 13:56:20 -08:00

36 lines
808 B
YAML

apiVersion : kyverno.io/v1
kind : ClusterPolicy
metadata :
name: check-probe-intervals
spec:
rules:
- name: check-probe-intervals
match:
resources:
kinds :
- Deployment
validate:
message: "livenessProbe must be > 10s"
pattern:
spec:
template:
spec:
containers:
- name: "*"
livenessProbe:
periodSeconds: ">10"
- name: check-probe-intervals
match:
resources:
kinds :
- Deployment
validate:
message: "readinessProbe must be > 10s"
pattern:
spec:
template:
spec:
containers:
- name: "*"
readinessProbe:
periodSeconds: ">10"