diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 361be89f2..6e1c8f159 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -34,6 +34,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + serviceAccountName: {{ include "rustfs.serviceAccountName" . }} {{- with include "chart.imagePullSecrets" . }} imagePullSecrets: {{- . | nindent 8 }} diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index 041f1ae09..5bc3a21f2 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -28,6 +28,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + serviceAccountName: {{ include "rustfs.serviceAccountName" . }} enableServiceLinks: {{ .Values.enableServiceLinks }} {{- with include "chart.imagePullSecrets" . }} imagePullSecrets: