mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
17 lines
318 B
YAML
17 lines
318 B
YAML
apiVersion: kyverno.io/v1alpha1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: disallow-node-port
|
|
spec:
|
|
rules:
|
|
- name: disallow-node-port
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Service
|
|
validate:
|
|
message: "Disallow service of type NodePort"
|
|
pattern:
|
|
spec:
|
|
type: "!NodePort"
|
|
|