| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 1 | {{- if .Values.networkPolicies.enabled }} |
| 2 | apiVersion: networking.k8s.io/v1 |
| 3 | kind: NetworkPolicy |
| 4 | metadata: |
| 5 | name: longhorn-recovery-backend |
| Giorgi Lekveishvili | 193b7c0 | 2025-05-22 16:21:37 +0400 | [diff] [blame^] | 6 | namespace: {{ include "release_namespace" . }} |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 7 | spec: |
| 8 | podSelector: |
| 9 | matchLabels: |
| Giorgi Lekveishvili | 193b7c0 | 2025-05-22 16:21:37 +0400 | [diff] [blame^] | 10 | longhorn.io/recovery-backend: longhorn-recovery-backend |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 11 | policyTypes: |
| 12 | - Ingress |
| 13 | ingress: |
| 14 | - ports: |
| 15 | - protocol: TCP |
| 16 | port: 9503 |
| 17 | {{- end }} |