Skip to content

Instantly share code, notes, and snippets.

@nomoa
Created August 23, 2021 13:39
Show Gist options
  • Save nomoa/f55450c8012fae69844ed4f707ded740 to your computer and use it in GitHub Desktop.
Save nomoa/f55450c8012fae69844ed4f707ded740 to your computer and use it in GitHub Desktop.
flink TM data ports
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