We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89d2e11 + 2f08378 commit 18679a6Copy full SHA for 18679a6
helm/templates/networkpolicy.yaml
@@ -46,7 +46,15 @@ spec:
46
port: {{ .Values.networkPolicy.egress.dnsPort | default 53 }}
47
48
# Allow Egress to other required services
49
- - to: []
+ - to:
50
+ {{- if .Values.networkPolicy.egress.allowedIpBlocks }}
51
+ {{- range .Values.networkPolicy.egress.allowedIpBlocks }}
52
+ - ipBlock:
53
+ cidr: {{ .cidr }}
54
+ {{- end }}
55
+ {{- else }}
56
+ []
57
58
ports:
59
{{- range .Values.networkPolicy.egress.allowedPorts }}
60
- protocol: {{ .protocol | default "TCP" }}
helm/values.yaml
@@ -106,3 +106,4 @@ networkPolicy:
106
protocol: TCP
107
- port: 9440
108
109
+ allowedIpBlocks: # Define IP blocks for egress
0 commit comments