Przeglądaj źródła

feat(helm): possibility to add `priorityClassName` in helm chart for the pods

Adrian Pauli 2 lat temu
rodzic
commit
9360cb5b66

+ 3 - 0
deploy/charts/emqx-enterprise/templates/StatefulSet.yaml

@@ -56,6 +56,9 @@ spec:
       {{- end }}
     spec:
       serviceAccountName: {{ include "emqx.serviceAccountName" . }}
+      {{- if .Values.priorityClassName }}
+      priorityClassName: {{ .Values.priorityClassName }}
+      {{- end }}
       volumes:
       {{- if .Values.ssl.enabled }}
       - name: ssl-cert

+ 3 - 0
deploy/charts/emqx-enterprise/values.yaml

@@ -38,6 +38,9 @@ recreatePods: false
 ## Sets the minReadySeconds parameter on the stateful set. This can be used to add delay between restart / updates between the single pods.
 minReadySeconds:
 
+## Sets the priorityClassName parameter on the pods. This can be used to run the pods with increased priority.
+priorityClassName:
+
 clusterDomain: cluster.local
 
 podAnnotations: {}

+ 3 - 0
deploy/charts/emqx/templates/StatefulSet.yaml

@@ -56,6 +56,9 @@ spec:
       {{- end }}
     spec:
       serviceAccountName: {{ include "emqx.serviceAccountName" . }}
+      {{- if .Values.priorityClassName }}
+      priorityClassName: {{ .Values.priorityClassName }}
+      {{- end }}
       volumes:
       {{- if .Values.ssl.enabled }}
       - name: ssl-cert

+ 3 - 0
deploy/charts/emqx/values.yaml

@@ -38,6 +38,9 @@ recreatePods: false
 ## Sets the minReadySeconds parameter on the stateful set. This can be used to add delay between restart / updates between the single pods.
 minReadySeconds:
 
+## Sets the priorityClassName parameter on the pods. This can be used to run the pods with increased priority.
+priorityClassName:
+
 clusterDomain: cluster.local
 
 podAnnotations: {}