blob: 39d4ec2f046d0e3fcf80a7a8400f8c4ffb097560 [file] [log] [blame]
{{- if .Values.networkPolicies.enabled }}
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 }}