0xgui commented on a change in pull request #199:
URL: https://github.com/apache/apisix-helm-chart/pull/199#discussion_r773806251
##########
File path: charts/apisix/templates/networkpolicy.yaml
##########
@@ -0,0 +1,77 @@
+{{- if .Values.apisix.networkPolicy.enabled }}
+{{- $fullName := include "apisix.fullname" . -}}
+kind: NetworkPolicy
+apiVersion: {{ template "networkPolicy.apiVersion" . }}
+metadata:
+ name: {{ include "apisix.fullname" . }}
+ namespace: {{ .Release.Namespace | quote }}
+ labels:
+ {{- include "apisix.labels" . | nindent 4 }}
+ {{- if .Values.apisix.networkPolicy.annotations }}
+ {{- with .Values.apisix.networkPolicy.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+ {{- end }}
+spec:
+ podSelector:
+ matchLabels: {{- include "apisix.selectorLabels" . | nindent 6 }}
+ policyTypes:
+ - Ingress
+ {{- if .Values.apisix.networkPolicy.additionalEgress }}
+ - Egress
+ egress:
+ - ports:
+ - port: 53
+ protocol: UDP
+ - ports:
Review comment:
Yes, sorry my bad. It was clearly a mistake.
What about now ? Is the `egress` policy OK for you ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]