diff --git a/charts/k8up/README.md b/charts/k8up/README.md index dfabe1713..c1023e5a1 100644 --- a/charts/k8up/README.md +++ b/charts/k8up/README.md @@ -81,6 +81,7 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect | nodeSelector | object | `{}` | | | podAnnotations | object | `{}` | Annotations to add to the Pod spec. | | podSecurityContext | object | `{}` | Security context to add to the Pod spec. | +| priorityClassName | string | `""` | The name of the priority class to use. | | rbac.create | bool | `true` | Create cluster roles and rolebinding. May need elevated permissions to create cluster roles and -bindings. | | replicaCount | int | `1` | How many operator pods should run. Note: Operator features leader election for K8s 1.16 and later, so that only 1 pod is reconciling/scheduling jobs. Follower pods reduce interruption time as they're on hot standby when leader is unresponsive. | | resources.limits.memory | string | `"256Mi"` | Memory limit of K8up operator. See [supported units][resource-units]. | diff --git a/charts/k8up/templates/deployment.yaml b/charts/k8up/templates/deployment.yaml index fbceb5b02..75fc96bba 100644 --- a/charts/k8up/templates/deployment.yaml +++ b/charts/k8up/templates/deployment.yaml @@ -81,6 +81,9 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} serviceAccountName: {{ template "k8up.serviceAccountName" . }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/k8up/values.yaml b/charts/k8up/values.yaml index 6ae09096b..c794afd90 100644 --- a/charts/k8up/values.yaml +++ b/charts/k8up/values.yaml @@ -80,6 +80,9 @@ podSecurityContext: {} # -- Container security context securityContext: {} +# -- The name of the priority class to use. +priorityClassName: "" + nodeSelector: {} tolerations: []