controller-webhooks-networkpolicy.yaml 464 B

12345678910111213141516171819
  1. {{- if .Values.controller.admissionWebhooks.enabled }}
  2. {{- if .Values.controller.admissionWebhooks.networkPolicyEnabled }}
  3. apiVersion: networking.k8s.io/v1
  4. kind: NetworkPolicy
  5. metadata:
  6. name: {{ include "ingress-nginx.fullname" . }}-webhooks-allow
  7. namespace: {{ .Release.Namespace }}
  8. spec:
  9. ingress:
  10. - {}
  11. podSelector:
  12. matchLabels:
  13. app.kubernetes.io/name: {{ include "ingress-nginx.name" . }}
  14. policyTypes:
  15. - Ingress
  16. {{- end }}
  17. {{- end }}