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