mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 03:05:02 +08:00
[Helm chart] Remove createClusterRole dependency from serviceAccount usage from filer statefulset (#5724)
* Remove createClusterRole dependency from serviceAccount usage from filer statefulset * Add automountServiceAccountToken option for service account.
This commit is contained in:

committed by
GitHub

parent
d8dfadb617
commit
e99eee8ed9
@@ -56,9 +56,7 @@ spec:
|
|||||||
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
{{- if .Values.global.createClusterRole }}
|
|
||||||
serviceAccountName: {{ .Values.filer.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
serviceAccountName: {{ .Values.filer.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.filer.priorityClassName }}
|
{{- if .Values.filer.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
||||||
|
@@ -7,4 +7,5 @@ metadata:
|
|||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
automountServiceAccountToken: {{ .Values.global.automountServiceAccountToken }}
|
@@ -19,6 +19,7 @@ global:
|
|||||||
filerRead: false
|
filerRead: false
|
||||||
# we will use this serviceAccountName for all ClusterRoles/ClusterRoleBindings
|
# we will use this serviceAccountName for all ClusterRoles/ClusterRoleBindings
|
||||||
serviceAccountName: "seaweedfs"
|
serviceAccountName: "seaweedfs"
|
||||||
|
automountServiceAccountToken: true
|
||||||
certificates:
|
certificates:
|
||||||
alphacrds: false
|
alphacrds: false
|
||||||
monitoring:
|
monitoring:
|
||||||
|
Reference in New Issue
Block a user