feat(helm) add egress-rule to netpol

This commit is contained in:
Patrick Spies
2023-10-19 09:26:51 +02:00
parent 508038a0f1
commit fd52f228ab
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ spec:
{{- end }}
policyTypes:
- Ingress
- Egress
ingress:
- ports:
- port: http
@@ -27,4 +28,11 @@ spec:
from:
{{- toYaml .| nindent 8 }}
{{- end }}
egress:
- ports:
- port: 443
{{- with .Values.reloader.netpol.from}}
to:
{{- toYaml .| nindent 8 }}
{{- end }}
{{- end }}

View File

@@ -276,5 +276,6 @@ reloader:
# - podSelector:
# matchLabels:
# app.kubernetes.io/name: prometheus
to: []
webhookUrl: ""