Skip to content

Commit 509a0a4

Browse files
authored
feat: add resources option for init_job (#576)
Signed-off-by: aperiamodely <[email protected]> Signed-off-by: Anthony974 <[email protected]>
1 parent 1e98d72 commit 509a0a4

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

helm-charts/charts/kube-starrocks/charts/starrocks/templates/init-pwd/job.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ spec:
3333
image: {{ .Values.starrocksFESpec.image.repository }}:{{ include "starrockscluster.fe.image.tag" . }}
3434
{{- end }}
3535
imagePullPolicy: IfNotPresent
36+
{{- if .Values.initPassword.resources }}
37+
resources: {{- toYaml .Values.initPassword.resources | nindent 10 }}
38+
{{- end }}
3639
command:
3740
- /bin/bash
3841
args:

helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ initPassword:
2727
image: ""
2828
# The annotations for the Job, not including the annotations for the pod.
2929
annotations: {}
30+
# resources for init_job pod.
31+
resources: {}
32+
#resources:
33+
# requests:
34+
# cpu: 500m
35+
# memory: 400Mi
36+
# limits:
37+
# cpu: 500m
38+
# memory: 800Mi
3039

3140
# TimeZone is used to set the environment variable TZ for pod, with Asia/Shanghai as the default.
3241
timeZone: Asia/Shanghai

helm-charts/charts/kube-starrocks/values.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ starrocks:
139139
image: ""
140140
# The annotations for the Job, not including the annotations for the pod.
141141
annotations: {}
142+
# resources for init_job pod.
143+
resources: {}
144+
#resources:
145+
# requests:
146+
# cpu: 500m
147+
# memory: 400Mi
148+
# limits:
149+
# cpu: 500m
150+
# memory: 800Mi
142151

143152
# TimeZone is used to set the environment variable TZ for pod, with Asia/Shanghai as the default.
144153
timeZone: Asia/Shanghai

0 commit comments

Comments
 (0)