Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,26 @@ spec:
{{- end }}
computeGroups:
{{- $originalContext := . -}}
{{- range $index, $cgName := .Values.computeGroupNames }}
- uniqueId: {{ $cgName }}
replicas: {{ $originalContext.Values.computeSpec.replicas }}
image: {{ $originalContext.Values.computeSpec.image.repository }}:{{ $originalContext.Values.computeSpec.image.tag }}
{{- range $index, $cg := .Values.computeGroups }}
{{- $replicas := $originalContext.Values.computeSpec.replicas }}
{{- if $cg.replicas }}{{- $replicas = $cg.replicas }}{{- end }}
{{- $imageRepo := $originalContext.Values.computeSpec.image.repository }}
{{- $imageTag := $originalContext.Values.computeSpec.image.tag }}
{{- if $cg.image }}
{{- if $cg.image.repository }}{{- $imageRepo = $cg.image.repository }}{{- end }}
{{- if $cg.image.tag }}{{- $imageTag = $cg.image.tag }}{{- end }}
{{- end }}
{{- $resources := $originalContext.Values.computeSpec.resources }}
{{- if $cg.resources }}{{- $resources = $cg.resources }}{{- end }}
- uniqueId: {{ $cg.name }}
replicas: {{ $replicas }}
image: {{ $imageRepo }}:{{ $imageTag }}
{{- if $originalContext.Values.computeSpec.imagePullSecrets }}
imagePullSecrets:
{{- toYaml $originalContext.Values.computeSpec.imagePullSecrets | nindent 6 }}
{{- end }}
{{- if $originalContext.Values.computeSpec.resources }}
{{- toYaml $originalContext.Values.computeSpec.resources | nindent 4 }}
{{- if $resources }}
{{- toYaml $resources | nindent 4 }}
{{- end }}
configMaps:
- name: {{ include "be.configmap.name" . }}
Expand Down
27 changes: 22 additions & 5 deletions helm-charts/doris-disaggregated/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,29 @@ feSpec:
requests:
storage: 200Gi

# specify the names of compute groups. this is required. if config
computeGroupNames:
- test-cg
- test-cg1
# specify the compute groups to deploy. each entry must have a `name` field (used as uniqueId).
# per-group `replicas`, `image`, and `resources` are optional and override the global computeSpec defaults.
# example with per-group overrides:
# computeGroups:
# - name: test-cg
# - name: test-cg1
# replicas: 3
# image:
# repository: apache/doris
# tag: be-3.1.0
# resources:
# requests:
# cpu: 16
# memory: 32Gi
# limits:
# cpu: 16
# memory: 32Gi
computeGroups:
- name: test-cg
- name: test-cg1

# describe the compute group spec to deploy.
# describe the default compute group spec. values here apply to all groups
# unless overridden per-group via computeGroups[*].replicas / computeGroups[*].image / computeGroups[*].resources.
computeSpec:
replicas: 2
image:
Expand Down
Loading