[bitnami/kafka] Add nodeSelector to Kafka provisioning (#12913)

* Add nodeSelector to Kafka provisioning

Signed-off-by: Craig Minihan <craig@ripcordsoftware.com>

* Bumped the chart version

Signed-off-by: Craig Minihan <craig@ripcordsoftware.com>

* Updated the README with readme-generator

Signed-off-by: Craig Minihan <craig@ripcordsoftware.com>
This commit is contained in:
Craig Minihan
2022-10-21 11:08:59 +01:00
committed by GitHub
parent f15f1371b6
commit 92a77bdcae
4 changed files with 9 additions and 1 deletions

View File

@@ -29,4 +29,4 @@ name: kafka
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/kafka
- https://kafka.apache.org/
version: 19.0.0
version: 19.0.1

View File

@@ -427,6 +427,7 @@ The command removes all the Kubernetes components associated with the chart and
| `provisioning.numPartitions` | Default number of partitions for topics when unspecified | `1` |
| `provisioning.replicationFactor` | Default replication factor for topics when unspecified | `1` |
| `provisioning.topics` | Kafka topics to provision | `[]` |
| `provisioning.nodeSelector` | Node labels for pod assignment | `{}` |
| `provisioning.tolerations` | Tolerations for pod assignment | `[]` |
| `provisioning.extraProvisioningCommands` | Extra commands to run to provision cluster resources | `[]` |
| `provisioning.parallel` | Number of provisioning commands to run at the same time | `1` |

View File

@@ -38,6 +38,9 @@ spec:
{{- end }}
restartPolicy: OnFailure
terminationGracePeriodSeconds: 0
{{- if .Values.provisioning.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.provisioning.nodeSelector "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.provisioning.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.provisioning.tolerations "context" .) | nindent 8 }}
{{- end }}

View File

@@ -1483,6 +1483,10 @@ provisioning:
## flush.messages: 1
##
topics: []
## @param provisioning.nodeSelector Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## @param provisioning.tolerations Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##