Skip to content

Commit

Permalink
[Enhancement] Support tolerations for init-password job
Browse files Browse the repository at this point in the history
Signed-off-by: yandongxiao <[email protected]>
  • Loading branch information
yandongxiao committed Mar 12, 2024
1 parent 8799e7c commit f35d953
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
affinity:
{{- include "starrockscluster.fe.affinity" . | nindent 8 }}
{{- end }}
{{- if or .Values.starrocksFESpec.tolerations .Values.starrocksCluster.componentValues.tolerations }}
tolerations:
{{- include "starrockscluster.fe.tolerations" . | nindent 8 }}
{{- end }}
containers:
- name: {{ template "starrockscluster.name" . }}-initpwd
{{- if .Values.initPassword.image }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ starrocksFESpec:
# name: mysecret
# key: username
# affinity for fe pod scheduling.
# Note: It will affect the scheduling of the init-password job.
affinity: {}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -195,6 +196,7 @@ starrocksFESpec:
# - target-host-name
# Node tolerations for fe pod scheduling to nodes with taints
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
# Note: It will affect the scheduling of the init-password job.
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/charts/kube-starrocks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ starrocks:
# name: mysecret
# key: username
# affinity for fe pod scheduling.
# Note: It will affect the scheduling of the init-password job.
affinity: {}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -292,6 +293,7 @@ starrocks:
# - target-host-name
# Node tolerations for fe pod scheduling to nodes with taints
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
# Note: It will affect the scheduling of the init-password job.
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
Expand Down

0 comments on commit f35d953

Please sign in to comment.