From 992de65c587019b0189965689d51c6d7024e4d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Pervill=C3=A9?= Date: Tue, 9 Jun 2026 16:07:41 +0200 Subject: [PATCH] feat(helm): add priorityClassName attribute (#3301) Co-authored-by: houseme --- helm/README.md | 1 + helm/rustfs/templates/deployment.yaml | 1 + helm/rustfs/templates/statefulset.yaml | 1 + helm/rustfs/values.yaml | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/helm/README.md b/helm/README.md index 6d80ea443..ed0ebd516 100644 --- a/helm/README.md +++ b/helm/README.md @@ -61,6 +61,7 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m | containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | | | containerSecurityContext.readOnlyRootFilesystem | bool | `true` | | | containerSecurityContext.runAsNonRoot | bool | `true` | | +| priorityClassName | string | `""` | | | enableServiceLinks | bool | `false` | | | extraManifests | list | `[]` | List of additional k8s manifests. | | fullnameOverride | string | `""` | | diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 254a0ed27..361be89f2 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -64,6 +64,7 @@ spec: tolerations: {{- toYaml .Values.tolerations | nindent 8 }} {{- end }} + priorityClassName: {{ .Values.priorityClassName }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} initContainers: diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index f5013169b..041f1ae09 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -65,6 +65,7 @@ spec: topologySpreadConstraints: {{- toYaml .Values.topologySpreadConstraints.constraints | nindent 8 }} {{- end }} + priorityClassName: {{ .Values.priorityClassName }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} initContainers: diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index 6c5cd5860..36ecac827 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -169,6 +169,10 @@ containerSecurityContext: allowPrivilegeEscalation: false runAsNonRoot: true +# Name of an existing PriorityClass to assign, defining the importance of the pods compared to other pods in the cluster. +# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ +priorityClassName: "" + service: annotations: {} headlessAnnotations: {} # Applied to the headless Service when mode.distributed.enabled=true