aboutsummaryrefslogtreecommitdiff
path: root/k8s
diff options
context:
space:
mode:
authorReddysekhar Gaduputi <gsekhar73@gmail.com>2024-06-29 22:02:12 +0530
committerGitHub <noreply@github.com>2024-06-29 09:32:12 -0700
commite99eee8ed930802a09509828d43163531b8bd6f2 (patch)
tree09d465762f3c0bef3cb264542c9bacb22bfbf960 /k8s
parentd8dfadb617c5ab0b782f6bf746d48abf5800705d (diff)
downloadseaweedfs-e99eee8ed930802a09509828d43163531b8bd6f2.tar.xz
seaweedfs-e99eee8ed930802a09509828d43163531b8bd6f2.zip
[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.
Diffstat (limited to 'k8s')
-rw-r--r--k8s/charts/seaweedfs/templates/filer-statefulset.yaml2
-rw-r--r--k8s/charts/seaweedfs/templates/service-account.yaml3
-rw-r--r--k8s/charts/seaweedfs/values.yaml1
3 files changed, 3 insertions, 3 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index 1e27c1840..881c4868a 100644
--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
@@ -56,9 +56,7 @@ spec:
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
{{- end }}
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
- {{- if .Values.global.createClusterRole }}
serviceAccountName: {{ .Values.filer.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
- {{- end }}
terminationGracePeriodSeconds: 60
{{- if .Values.filer.priorityClassName }}
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
diff --git a/k8s/charts/seaweedfs/templates/service-account.yaml b/k8s/charts/seaweedfs/templates/service-account.yaml
index a00c9f3f7..429158a27 100644
--- a/k8s/charts/seaweedfs/templates/service-account.yaml
+++ b/k8s/charts/seaweedfs/templates/service-account.yaml
@@ -7,4 +7,5 @@ metadata:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
- app.kubernetes.io/instance: {{ .Release.Name }} \ No newline at end of file
+ app.kubernetes.io/instance: {{ .Release.Name }}
+automountServiceAccountToken: {{ .Values.global.automountServiceAccountToken }} \ No newline at end of file
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 53385779e..585272db4 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -19,6 +19,7 @@ global:
filerRead: false
# we will use this serviceAccountName for all ClusterRoles/ClusterRoleBindings
serviceAccountName: "seaweedfs"
+ automountServiceAccountToken: true
certificates:
alphacrds: false
monitoring: