blob: 39d4ec2f046d0e3fcf80a7a8400f8c4ffb097560 [file] [log] [blame]
gio3e1b96b2026-07-21 18:52:35 +04001{{- if .Values.networkPolicies.enabled }}
2apiVersion: networking.k8s.io/v1
3kind: NetworkPolicy
4metadata:
5 name: longhorn-admission-webhook
6 namespace: {{ include "release_namespace" . }}
7spec:
8 podSelector:
9 matchLabels:
10 longhorn.io/admission-webhook: longhorn-admission-webhook
11 policyTypes:
12 - Ingress
13 ingress:
14 - ports:
15 - protocol: TCP
16 port: 9502
17{{- end }}