Skip to content

Commit b1831de

Browse files
committed
feat: add resources option for init_job
1 parent 52cfec8 commit b1831de

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
@@ -22,6 +22,15 @@ initPassword:
2222
image: ""
2323
# The annotations for the Job, not including the annotations for the pod.
2424
annotations: {}
25+
# resources for init_job pod.
26+
resources: {}
27+
#resources:
28+
# requests:
29+
# cpu: 500m
30+
# memory: 400Mi
31+
# limits:
32+
# cpu: 500m
33+
# memory: 800Mi
2534

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

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

+9
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ starrocks:
130130
image: ""
131131
# The annotations for the Job, not including the annotations for the pod.
132132
annotations: {}
133+
# resources for init_job pod.
134+
resources: {}
135+
#resources:
136+
# requests:
137+
# cpu: 500m
138+
# memory: 400Mi
139+
# limits:
140+
# cpu: 500m
141+
# memory: 800Mi
133142

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

0 commit comments

Comments
 (0)