blob: 3812e0ffa39fbad419529403d9a8c09ae59b8287 [file] [log] [blame]
Giorgi Lekveishvilid87487d2025-07-07 14:03:30 +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 longhorn.io/conversion-webhook: longhorn-conversion-webhook
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 longhorn.io/admission-webhook: longhorn-admission-webhook
27 policyTypes:
28 - Ingress
29 ingress:
30 - ports:
31 - protocol: TCP
32 port: 9502
33{{- end }}