| {{- if .Values.networkPolicies.enabled }} | |
| apiVersion: networking.k8s.io/v1 | |
| kind: NetworkPolicy | |
| metadata: | |
| name: longhorn-recovery-backend | |
| namespace: {{ include "release_namespace" . }} | |
| spec: | |
| podSelector: | |
| matchLabels: | |
| longhorn.io/recovery-backend: longhorn-recovery-backend | |
| policyTypes: | |
| - Ingress | |
| ingress: | |
| - ports: | |
| - protocol: TCP | |
| port: 9503 | |
| {{- end }} |