tokers commented on a change in pull request #199:
URL: https://github.com/apache/apisix-helm-chart/pull/199#discussion_r775688976
##########
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:
I think specify the source port is meaningless, as the source ports
usually specified by the kernel, it's somewhat random for users.
--
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]