blob: 39d4ec2f046d0e3fcf80a7a8400f8c4ffb097560 [file] [log] [blame]
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +04001{{- if .Values.networkPolicies.enabled }}
2apiVersion: networking.k8s.io/v1
3kind: NetworkPolicy
4metadata:
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +04005 name: longhorn-admission-webhook
gio16bb6382025-05-21 18:42:40 +04006 namespace: {{ include "release_namespace" . }}
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +04007spec:
8 podSelector:
9 matchLabels:
gioc9b92b12025-05-22 08:57:18 +040010 longhorn.io/admission-webhook: longhorn-admission-webhook
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +040011 policyTypes:
12 - Ingress
13 ingress:
14 - ports:
15 - protocol: TCP
16 port: 9502
17{{- end }}