diff --git a/helm-charts/doris/templates/doriscluster.yaml b/helm-charts/doris/templates/doriscluster.yaml index 4cec9a4b..63e6b572 100644 --- a/helm-charts/doris/templates/doriscluster.yaml +++ b/helm-charts/doris/templates/doriscluster.yaml @@ -129,6 +129,9 @@ spec: command: {{ .Values.feSpec.systemInitialization.command }} {{- end }} {{- end }} + {{- if .Values.feSpec.serviceAccount }} + serviceAccount: {{ .Values.feSpec.serviceAccount }} + {{- end }} beSpec: {{- if .Values.beSpec.annotations }} annotations: @@ -215,6 +218,9 @@ spec: command: {{ .Values.beSpec.systemInitialization.command }} {{- end }} {{- end }} + {{- if .Values.beSpec.serviceAccount }} + serviceAccount: {{ .Values.beSpec.serviceAccount }} + {{- end }} {{- if .Values.dorisCluster.enabledCn }} cnSpec: {{- if .Values.cnSpec.annotations }} @@ -303,6 +309,9 @@ spec: command: {{ .Values.cnSpec.systemInitialization.command }} {{- end }} {{- end }} + {{- if .Values.cnSpec.serviceAccount }} + serviceAccount: {{ .Values.cnSpec.serviceAccount }} + {{- end }} {{- if .Values.cnSpec.autoScalingPolicy.enable }} autoScalingPolicy: version: {{default ( include "doriscluster.default.autoScalerVersion" . ) .Values.cnSpec.autoScalingPolicy.version }} @@ -384,4 +393,7 @@ spec: command: {{ .Values.brokerSpec.systemInitialization.command }} {{- end }} {{- end }} + {{- if .Values.brokerSpec.serviceAccount }} + serviceAccount: {{ .Values.brokerSpec.serviceAccount }} + {{- end }} {{- end }} diff --git a/helm-charts/doris/values.yaml b/helm-charts/doris/values.yaml index 420fd601..801cc7ee 100644 --- a/helm-charts/doris/values.yaml +++ b/helm-charts/doris/values.yaml @@ -216,6 +216,7 @@ feSpec: systemInitialization: {} # initImage: "selectdb/alpine:latest" # command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ] + serviceAccount: "" beSpec: # annotations for be pods and service @@ -383,6 +384,7 @@ beSpec: systemInitialization: {} # initImage: "selectdb/alpine:latest" # command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ] + serviceAccount: "" cnSpec: # annotations for cn pods and service @@ -551,6 +553,7 @@ cnSpec: systemInitialization: {} # initImage: "selectdb/alpine:latest" # command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ] + serviceAccount: "" # specific cn auto scale policy autoScalingPolicy: enable: true @@ -707,5 +710,4 @@ brokerSpec: systemInitialization: {} # initImage: "selectdb/alpine:latest" # command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ] - - + serviceAccount: ""