Created
August 23, 2021 13:39
-
-
Save nomoa/f55450c8012fae69844ed4f707ded740 to your computer and use it in GitHub Desktop.
flink TM data ports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spec: | |
podSelector: | |
matchLabels: | |
app: {{ template "wmf.chartname" . }}-taskmanager | |
release: {{ .Release.Name }} | |
policyTypes: | |
{{- if .Values.networkpolicy.egress.enabled }} | |
- Egress | |
{{- end }} | |
- Ingress | |
ingress: | |
- from: | |
- podSelector: | |
matchLabels: | |
app: {{ template "wmf.chartname" . }} | |
release: {{ .Release.Name }} | |
ports: | |
- port: {{ .Values.main_app.config.taskmanager_rpc_port }} | |
protocol: TCP | |
- port: {{ .Values.main_app.config.queryable_state_proxy_port }} | |
protocol: TCP | |
- from: | |
# allow data port between taskmanagers | |
- podSelector: | |
matchLabels: | |
app: {{ template "wmf.chartname" . }}-taskmanager | |
release: {{ .Release.Name }} | |
ports: | |
- port: {{ .Values.main_app.config.taskmanager_data_port }} | |
protocol: TCP | |
- ports: | |
# flink's native prometheus endpoint | |
- port: {{ .Values.main_app.config.prometheus_reporter_port }} | |
protocol: TCP | |
{{- include "tls.networkpolicy" . | indent 6 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment