Skip to content

Commit d946f3f

Browse files
gaddam1987Naresh Kumar Reddy Gaddam
andauthored
[FLINK-36353] Allow to add affinity for operator pod of helm chart
Co-authored-by: Naresh Kumar Reddy Gaddam <[email protected]>
1 parent 968a578 commit d946f3f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

helm/flink-kubernetes-operator/templates/flink-operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ spec:
6060
{{- if .Values.operatorPod.nodeSelector }}
6161
nodeSelector: {{ toYaml .Values.operatorPod.nodeSelector | nindent 8 }}
6262
{{- end }}
63+
{{- if .Values.operatorPod.affinity }}
64+
affinity: {{ toYaml .Values.operatorPod.affinity | nindent 8 }}
65+
{{- end }}
6366
{{- with .Values.operatorPod.tolerations }}
6467
tolerations:
6568
{{- toYaml . | nindent 8 }}

helm/flink-kubernetes-operator/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ operatorPod:
7272
# key: ""
7373
# dnsPolicy: ""
7474
# dnsConfig: {}
75-
# Node labels for operator pod assignment
75+
# Node labels and affinity for operator pod assignment
7676
# https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
7777
envFrom:
7878
# - configMapRef:
7979
# name: ""
8080
nodeSelector: {}
81+
82+
affinity: {}
8183
# Node tolerations for operator pod assignment
8284
# https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
8385
tolerations: []

0 commit comments

Comments
 (0)