diff --git a/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/README.md b/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/README.md index cd3552100..1b4530df2 100644 --- a/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/README.md +++ b/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/README.md @@ -35,6 +35,7 @@ The following table lists the configurable parameters of the Dask-kubernetes-ope | `nodeSelector` | Node selector | `{}` | | `tolerations` | Tolerations | `[]` | | `affinity` | Affinity | `{}` | +| `priorityClassName` | Priority class | `null` | | `kopfArgs` | Command line flags to pass to kopf on start up | `["--all-namespaces"]` | | `metrics.scheduler.enabled` | Enable scheduler metrics. Pip package [prometheus-client](https://pypi.org/project/prometheus-client/) should be present on scheduler. | `false` | | `metrics.scheduler.serviceMonitor.enabled` | Enable scheduler servicemonitor. | `false` | diff --git a/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/templates/deployment.yaml b/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/templates/deployment.yaml index f4f22a9db..285259c0c 100644 --- a/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/templates/deployment.yaml +++ b/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/templates/deployment.yaml @@ -68,3 +68,6 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . | quote }} + {{- end }} diff --git a/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/values.yaml b/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/values.yaml index d58264254..d4d863a55 100644 --- a/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/values.yaml +++ b/dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator/values.yaml @@ -52,6 +52,8 @@ tolerations: [] # Tolerations affinity: {} # Affinity +priorityClassName: null # Priority class + kopfArgs: # Command line flags to pass to kopf on start up - --all-namespaces