NetworkPolicy: ingress namespaces configurable, allow traefik (migration from ingress-nginx)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -29,9 +29,11 @@ spec:
|
|||||||
- Egress
|
- Egress
|
||||||
ingress:
|
ingress:
|
||||||
- from:
|
- from:
|
||||||
|
{{- range $root.Values.networkPolicy.ingressNamespaces }}
|
||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
kubernetes.io/metadata.name: ingress-nginx
|
kubernetes.io/metadata.name: {{ . }}
|
||||||
|
{{- end }}
|
||||||
{{- range $app.networkPolicy.allowFrom }}
|
{{- range $app.networkPolicy.allowFrom }}
|
||||||
- podSelector:
|
- podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ ingress:
|
|||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
|
|
||||||
networkPolicy:
|
networkPolicy:
|
||||||
|
# Namespaces of the ingress controller(s) allowed to reach isolated apps.
|
||||||
|
ingressNamespaces:
|
||||||
|
- ingress-nginx
|
||||||
|
- traefik
|
||||||
# loki's addresses: kubelet probes and hostNetwork pods (Home Assistant) come from here.
|
# loki's addresses: kubelet probes and hostNetwork pods (Home Assistant) come from here.
|
||||||
# 10.1.215.192 = vxlan.calico interface (host -> pod traffic may use it as source).
|
# 10.1.215.192 = vxlan.calico interface (host -> pod traffic may use it as source).
|
||||||
nodeIPs:
|
nodeIPs:
|
||||||
|
|||||||
Reference in New Issue
Block a user