diff --git a/helm/kanister-operator/README.md b/helm/kanister-operator/README.md index 63fb1d218e..19d7b6ec44 100644 --- a/helm/kanister-operator/README.md +++ b/helm/kanister-operator/README.md @@ -54,6 +54,8 @@ Parameter | Description | Default `image.tag` | controller container image tag | `0.10.0` `image.pullPolicy` | controller container image pull policy | `IfNotPresent` `resources` | k8s pod resources | `None` +`nodeSelector` | node labels for pod assignment. Evaluated as template | `{}` | +`tolerations` | tolerations for pod assignment. Evaluated as a template | `[]` | Specify each parameter you'd like to override using a YAML file as described above in the [installation](#installing-the-chart) section. diff --git a/helm/kanister-operator/templates/deployment.yaml b/helm/kanister-operator/templates/deployment.yaml index bbb9c6fdfa..2526f06fb7 100644 --- a/helm/kanister-operator/templates/deployment.yaml +++ b/helm/kanister-operator/templates/deployment.yaml @@ -72,3 +72,9 @@ spec: {{ toYaml .Values.resources | indent 12 }} {{- end }} {{- end }} +{{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} +{{- end }} +{{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} +{{- end }} diff --git a/helm/kanister-operator/values.yaml b/helm/kanister-operator/values.yaml index 1459d5874c..cb7cdde090 100644 --- a/helm/kanister-operator/values.yaml +++ b/helm/kanister-operator/values.yaml @@ -76,3 +76,13 @@ resources: # requests: # cpu: 100m # memory: 128Mi +# +# tolerations for pod assignment. Evaluated as a template +tolerations: [] +#- effect: NoSchedule +# key: CriticalAddonsOnly +# operator: Equal +# value: "true" +# +# node labels for pod assignment. Evaluated as template +nodeSelector: {}