Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
[Feature/Operator] nodeSelector/affinity/toleration config (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien COMTE <[email protected]>
  • Loading branch information
comtef and Fabien COMTE authored May 15, 2021
1 parent ddf6c4a commit 77e124d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helm/nifikop/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ spec:
operator: nifi
release: {{ .Release.Name }}
spec:
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.image.imagePullSecrets.enabled }}
imagePullSecrets:
- name: {{ .Values.image.imagePullSecrets.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ The following tables lists the configurable parameters of the NiFi Operator Helm
| `debug.enabled` | activate DEBUG log level | `false` |
| `certManager.clusterScoped` | If true setup cluster scoped resources | `false` |
| `namespaces` | List of namespaces where Operator watches for custom resources. Make sure the operator ServiceAccount is granted `get` permissions on this `Node` resource when using limited RBACs.| `""` i.e. all namespaces |
| `nodeSelector` | Node selector configuration for operator pod | `{}` |
| `affinity` | Node affinity configuration for operator pod | `{}` |
| `tolerations` | Toleration configuration for operator pod | `{}` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

Expand Down

0 comments on commit 77e124d

Please sign in to comment.