blob: 3812e0ffa39fbad419529403d9a8c09ae59b8287 [file] [log] [blame]
{{- if .Values.networkPolicies.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: longhorn-conversion-webhook
namespace: {{ include "release_namespace" . }}
spec:
podSelector:
matchLabels:
longhorn.io/conversion-webhook: longhorn-conversion-webhook
policyTypes:
- Ingress
ingress:
- ports:
- protocol: TCP
port: 9501
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: longhorn-admission-webhook
namespace: {{ include "release_namespace" . }}
spec:
podSelector:
matchLabels:
longhorn.io/admission-webhook: longhorn-admission-webhook
policyTypes:
- Ingress
ingress:
- ports:
- protocol: TCP
port: 9502
{{- end }}