mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 16:07:05 +00:00
helm: expose init container parameters as helm values (#1232)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -57,11 +57,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-step
|
- name: init-step
|
||||||
image: busybox
|
image: "{{ .Values.initStep.image.repository }}:{{ .Values.initStep.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.initStep.image.pullPolicy }}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
{{- toYaml .Values.initStep.containerSecurityContext | nindent 12 }}
|
||||||
runAsGroup: 0
|
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@@ -68,11 +68,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-step
|
- name: init-step
|
||||||
image: busybox
|
image: "{{ .Values.initStep.image.repository }}:{{ .Values.initStep.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.initStep.image.pullPolicy }}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
{{- toYaml .Values.initStep.containerSecurityContext | nindent 12 }}
|
||||||
runAsGroup: 0
|
|
||||||
env:
|
env:
|
||||||
- name: REPLICA_COUNT
|
- name: REPLICA_COUNT
|
||||||
value: {{ .Values.replicaCount | quote }}
|
value: {{ .Values.replicaCount | quote }}
|
||||||
|
|||||||
@@ -177,4 +177,16 @@ storageclass:
|
|||||||
dataStorageSize: 256Mi
|
dataStorageSize: 256Mi
|
||||||
logStorageSize: 256Mi
|
logStorageSize: 256Mi
|
||||||
|
|
||||||
|
# Init container parameters.
|
||||||
|
initStep:
|
||||||
|
image:
|
||||||
|
repository: busybox
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: "latest"
|
||||||
|
containerSecurityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extraManifests: []
|
extraManifests: []
|
||||||
|
|||||||
Reference in New Issue
Block a user