mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
19 lines
450 B
YAML
19 lines
450 B
YAML
apiVersion: kyverno.io/v1alpha1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: validate-allow-portrange-with-sysctl
|
|
spec:
|
|
rules:
|
|
- name: allow-portrange-with-sysctl
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Allowed port range is from 1024 to 65535"
|
|
pattern:
|
|
spec:
|
|
securityContext:
|
|
sysctls:
|
|
- name: net.ipv4.ip_local_port_range
|
|
value: "1024 65535"
|