diff --git a/stable/rabbitmq-ha/Chart.yaml b/stable/rabbitmq-ha/Chart.yaml index 0f78bc0f68..46ca46d812 100644 --- a/stable/rabbitmq-ha/Chart.yaml +++ b/stable/rabbitmq-ha/Chart.yaml @@ -1,7 +1,7 @@ name: rabbitmq-ha apiVersion: v1 appVersion: 3.7.4 -version: 1.10.0 +version: 1.11.0 description: Highly available RabbitMQ cluster, the open source message broker software that implements the Advanced Message Queuing Protocol (AMQP). keywords: diff --git a/stable/rabbitmq-ha/README.md b/stable/rabbitmq-ha/README.md index e043cde316..cc9b83528e 100644 --- a/stable/rabbitmq-ha/README.md +++ b/stable/rabbitmq-ha/README.md @@ -136,6 +136,7 @@ and their default values. | `podAnnotations` | Extra annotations to add to pod | `{}` | | `terminationGracePeriodSeconds` | Duration pod needs to terminate gracefully | `10` | | `updateStrategy` | Statefulset update strategy | `OnDelete` | +| `priorityClassName` | Statefulsets Pod Priority | `` | | `extraLabels` | Labels to add to the Resources | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/rabbitmq-ha/templates/statefulset.yaml b/stable/rabbitmq-ha/templates/statefulset.yaml index e0f340b4df..4fa55accec 100644 --- a/stable/rabbitmq-ha/templates/statefulset.yaml +++ b/stable/rabbitmq-ha/templates/statefulset.yaml @@ -246,6 +246,9 @@ spec: defaultMode: 420 secretName: {{ template "rabbitmq-ha.certSecretName" . }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} {{- if .Values.persistentVolume.enabled }} volumeClaimTemplates: - metadata: diff --git a/stable/rabbitmq-ha/values.yaml b/stable/rabbitmq-ha/values.yaml index 0caa3b5a47..b9506d1caa 100644 --- a/stable/rabbitmq-ha/values.yaml +++ b/stable/rabbitmq-ha/values.yaml @@ -208,6 +208,10 @@ service: ## updateStrategy: OnDelete +## Statefulsets Pod Priority +## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass +## priorityClassName: "" + ## We usually recommend not to specify default resources and to leave this as ## a conscious choice for the user. This also increases chances charts run on ## environments with little resources, such as Minikube. If you do want to