allow specifying the nodeSelector for the init jobs (#225)
* allow specifying the nodeSelector for the init jobs * Use pulsar_metadata.nodeSelector Co-authored-by: samuel <samuel.verstraete@aprimo.com> ### Motivation When deploying pulsar to an AKS cluster with windows nodepools i was unable to specify that the Jobs of the initalize release had to run on linux nodes. With the change i can now specify a node selector for the init jobs. ### Modifications add nodeSelector on pulsar_init and bookie_init ### Verifying this change - [ ] Make sure that the change passes the CI checks.
This commit is contained in:
parent
2410743cdb
commit
8f033bd1a5
@ -37,6 +37,10 @@ spec:
|
||||
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
||||
serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
|
||||
{{- end }}
|
||||
nodeSelector:
|
||||
{{- if .Values.pulsar_metadata.nodeSelector }}
|
||||
{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- name: wait-zookeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
||||
|
||||
@ -35,6 +35,10 @@ spec:
|
||||
{{- end }}
|
||||
template:
|
||||
spec:
|
||||
{{- if .Values.pulsar_metadata.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
initContainers:
|
||||
{{- if .Values.pulsar_metadata.configurationStore }}
|
||||
- name: wait-cs-ready
|
||||
@ -46,7 +50,6 @@ spec:
|
||||
until nslookup {{ .Values.pulsar_metadata.configurationStore}}; do
|
||||
sleep 3;
|
||||
done;
|
||||
|
||||
{{- end }}
|
||||
- name: wait-zookeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||
|
||||
@ -644,6 +644,9 @@ pulsar_metadata:
|
||||
# configurationStore:
|
||||
configurationStoreMetadataPrefix: ""
|
||||
configurationStorePort: 2181
|
||||
## optional you can specify a nodeSelector for all init jobs (pulsar-init & bookkeeper-init)
|
||||
# nodeSelector:
|
||||
# cloud.google.com/gke-nodepool: default-pool
|
||||
|
||||
## optional, you can provide your own zookeeper metadata store for other components
|
||||
# to use this, you should explicit set components.zookeeper to false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user