blob: 37bf5f9bcff314efef8b75b890b7d05fda95445b [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-recovery-backend
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/recovery-backend: longhorn-recovery-backend
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040011 policyTypes:
12 - Ingress
13 ingress:
14 - ports:
15 - protocol: TCP
16 port: 9503
17{{- end }}