blob: 3812e0ffa39fbad419529403d9a8c09ae59b8287 [file] [log] [blame]
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +04001{{- if .Values.networkPolicies.enabled }}
2apiVersion: networking.k8s.io/v1
3kind: NetworkPolicy
4metadata:
5 name: longhorn-conversion-webhook
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +04006 namespace: {{ include "release_namespace" . }}
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +04007spec:
8 podSelector:
9 matchLabels:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040010 longhorn.io/conversion-webhook: longhorn-conversion-webhook
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040011 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
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040022 namespace: {{ include "release_namespace" . }}
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040023spec:
24 podSelector:
25 matchLabels:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040026 longhorn.io/admission-webhook: longhorn-admission-webhook
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040027 policyTypes:
28 - Ingress
29 ingress:
30 - ports:
31 - protocol: TCP
32 port: 9502
33{{- end }}