mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* new samples; updates * typos * add policy to restrict LoadBalancer * correct sample numbering * fix typos
17 lines
No EOL
352 B
YAML
17 lines
No EOL
352 B
YAML
apiVersion: kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: no-loadbalancers
|
|
spec:
|
|
validationFailureAction: audit
|
|
rules:
|
|
- name: no-LoadBalancer
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Service
|
|
validate:
|
|
message: "Service of type LoadBalancer is not allowed."
|
|
pattern:
|
|
spec:
|
|
type: "!LoadBalancer" |