aboutsummaryrefslogtreecommitdiff
path: root/k8s
diff options
context:
space:
mode:
authorAlexandre Viau <alexandre@alexandreviau.net>2023-08-28 12:06:06 -0400
committerGitHub <noreply@github.com>2023-08-28 09:06:06 -0700
commitdb5d23defe49337c05ec7b7c2b793ba9be3616c0 (patch)
tree130956f9ad8f8393e222f6906b4dd7cdcea7b2fa /k8s
parentac1b1445260b130c171d60ce9ea13279522a5a87 (diff)
downloadseaweedfs-db5d23defe49337c05ec7b7c2b793ba9be3616c0.tar.xz
seaweedfs-db5d23defe49337c05ec7b7c2b793ba9be3616c0.zip
k8s: allow configuring serviceAccountName (#4790)
Diffstat (limited to 'k8s')
-rw-r--r--k8s/charts/seaweedfs/templates/filer-statefulset.yaml3
-rw-r--r--k8s/charts/seaweedfs/templates/master-statefulset.yaml3
-rw-r--r--k8s/charts/seaweedfs/templates/s3-deployment.yaml3
-rw-r--r--k8s/charts/seaweedfs/templates/volume-statefulset.yaml3
-rw-r--r--k8s/charts/seaweedfs/values.yaml16
5 files changed, 28 insertions, 0 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index 522a7dcfa..48279dad7 100644
--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
@@ -52,6 +52,9 @@ spec:
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
{{- end }}
enableServiceLinks: false
+ {{- if .Values.filer.serviceAccountName }}
+ serviceAccountName: {{ .Values.filer.serviceAccountName | quote }}
+ {{- end }}
{{- if .Values.filer.initContainers }}
initContainers:
{{ tpl .Values.filer.initContainers . | nindent 8 | trim }}
diff --git a/k8s/charts/seaweedfs/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yaml
index 2b4a8b5c9..e8563ff9b 100644
--- a/k8s/charts/seaweedfs/templates/master-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/master-statefulset.yaml
@@ -48,6 +48,9 @@ spec:
priorityClassName: {{ .Values.master.priorityClassName | quote }}
{{- end }}
enableServiceLinks: false
+ {{- if .Values.master.serviceAccountName }}
+ serviceAccountName: {{ .Values.master.serviceAccountName | quote }}
+ {{- end }}
{{- if .Values.master.initContainers }}
initContainers:
{{ tpl .Values.master.initContainers . | nindent 8 | trim }}
diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yaml
index a996b6ef6..2fe3fee92 100644
--- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml
+++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml
@@ -36,6 +36,9 @@ spec:
priorityClassName: {{ .Values.s3.priorityClassName | quote }}
{{- end }}
enableServiceLinks: false
+ {{- if .Values.s3.serviceAccountName }}
+ serviceAccountName: {{ .Values.s3.serviceAccountName | quote }}
+ {{- end }}
{{- if .Values.s3.initContainers }}
initContainers:
{{ tpl .Values.s3.initContainers . | nindent 8 | trim }}
diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
index 18b342dca..344821a4d 100644
--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
@@ -42,6 +42,9 @@ spec:
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
{{- end }}
enableServiceLinks: false
+ {{- if .Values.volume.serviceAccountName }}
+ serviceAccountName: {{ .Values.volume.serviceAccountName | quote }}
+ {{- end }}
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
{{- if $initContainers_exists }}
initContainers:
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 8431047b9..1f24d221c 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -124,6 +124,10 @@ master:
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
priorityClassName: ""
+ # used to assign a service account.
+ # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+ serviceAccountName: ""
+
ingress:
enabled: false
className: "nginx"
@@ -265,6 +269,10 @@ volume:
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
priorityClassName: ""
+ # used to assign a service account.
+ # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+ serviceAccountName: ""
+
filer:
enabled: true
repository: null
@@ -372,6 +380,10 @@ filer:
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
priorityClassName: ""
+ # used to assign a service account.
+ # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+ serviceAccountName: ""
+
ingress:
enabled: false
className: "nginx"
@@ -492,6 +504,10 @@ s3:
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
priorityClassName: ""
+ # used to assign a service account.
+ # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+ serviceAccountName: ""
+
logs:
type: "hostPath"
size: ""