blob: 3575763d395341dd1fc66713d42a4f31bc1a0fea [file] [log] [blame]
gioc9b92b12025-05-22 08:57:18 +04001{{- if .Values.networkPolicies.enabled }}
2apiVersion: networking.k8s.io/v1
3kind: NetworkPolicy
4metadata:
5 name: longhorn-conversion-webhook
6 namespace: {{ include "release_namespace" . }}
7spec:
8 podSelector:
9 matchLabels:
10 app: longhorn-manager
11 policyTypes:
12 - Ingress
13 ingress:
14 - ports:
15 - protocol: TCP
16 port: 9501
17---
18apiVersion: networking.k8s.io/v1
19kind: NetworkPolicy
20metadata:
21 name: longhorn-admission-webhook
22 namespace: {{ include "release_namespace" . }}
23spec:
24 podSelector:
25 matchLabels:
26 app: longhorn-manager
27 policyTypes:
28 - Ingress
29 ingress:
30 - ports:
31 - protocol: TCP
32 port: 9502
33{{- end }}