aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfibbanachi <49879947+Programmeris@users.noreply.github.com>2023-10-24 17:34:55 +0300
committerGitHub <noreply@github.com>2023-10-24 07:34:55 -0700
commit8dfb66880e0982f46f237db32ff6df2adcd38268 (patch)
treee37fb5671a9d4b8f8dd91c37358ca70cd6d8d7b9
parent179039afaaa9abacc5dde635dd26ea12f0888828 (diff)
downloadseaweedfs-8dfb66880e0982f46f237db32ff6df2adcd38268.tar.xz
seaweedfs-8dfb66880e0982f46f237db32ff6df2adcd38268.zip
Remove hardcoded podManagmentPolicy value in a helm chart (#4941)
-rw-r--r--k8s/charts/seaweedfs/templates/filer-statefulset.yaml2
-rw-r--r--k8s/charts/seaweedfs/templates/master-statefulset.yaml2
-rw-r--r--k8s/charts/seaweedfs/templates/volume-statefulset.yaml2
-rw-r--r--k8s/charts/seaweedfs/values.yaml9
4 files changed, 12 insertions, 3 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index 244fd5972..5f2092be2 100644
--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
@@ -12,7 +12,7 @@ metadata:
app.kubernetes.io/component: filer
spec:
serviceName: {{ template "seaweedfs.name" . }}-filer
- podManagementPolicy: Parallel
+ podManagementPolicy: {{ .Values.filer.podManagementPolicy }}
replicas: {{ .Values.filer.replicas }}
{{- if (gt (int .Values.filer.updatePartition) 0) }}
updateStrategy:
diff --git a/k8s/charts/seaweedfs/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yaml
index 0acc9c7b0..1da629dc6 100644
--- a/k8s/charts/seaweedfs/templates/master-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/master-statefulset.yaml
@@ -11,7 +11,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceName: {{ template "seaweedfs.name" . }}-master
- podManagementPolicy: Parallel
+ podManagementPolicy: {{ .Values.master.podManagementPolicy }}
replicas: {{ .Values.master.replicas }}
{{- if (gt (int .Values.master.updatePartition) 0) }}
updateStrategy:
diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
index 51ba97a0a..9f851fee0 100644
--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
@@ -12,7 +12,7 @@ metadata:
spec:
serviceName: {{ template "seaweedfs.name" . }}-volume
replicas: {{ .Values.volume.replicas }}
- podManagementPolicy: Parallel
+ podManagementPolicy: {{ .Values.volume.podManagementPolicy }}
selector:
matchLabels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index a83ceac46..99799f3a0 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -94,6 +94,9 @@ master:
extraVolumes: ""
extraVolumeMounts: ""
+ ## Set podManagementPolicy
+ podManagementPolicy: Parallel
+
# Resource requests, limits, etc. for the master cluster placement. This
# should map directly to the value of the resources field for a PodSpec,
# formatted as a multi-line string. By default no direct resource request
@@ -269,6 +272,9 @@ volume:
extraVolumes: ""
extraVolumeMounts: ""
+ ## Set podManagementPolicy
+ podManagementPolicy: Parallel
+
# Affinity Settings
# Commenting out or setting as empty the affinity variable, will allow
# deployment to single node services such as Minikube
@@ -402,6 +408,9 @@ filer:
extraVolumes: ""
extraVolumeMounts: ""
+ ## Set podManagementPolicy
+ podManagementPolicy: Parallel
+
# Affinity Settings
# Commenting out or setting as empty the affinity variable, will allow
# deployment to single node services such as Minikube