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
@ -36,6 +36,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
||||||
serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
|
serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
|
||||||
|
{{- end }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- if .Values.pulsar_metadata.nodeSelector }}
|
||||||
|
{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-zookeeper-ready
|
- name: wait-zookeeper-ready
|
||||||
|
|||||||
@ -35,6 +35,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
{{- if .Values.pulsar_metadata.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
|
||||||
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- if .Values.pulsar_metadata.configurationStore }}
|
{{- if .Values.pulsar_metadata.configurationStore }}
|
||||||
- name: wait-cs-ready
|
- name: wait-cs-ready
|
||||||
@ -46,7 +50,6 @@ spec:
|
|||||||
until nslookup {{ .Values.pulsar_metadata.configurationStore}}; do
|
until nslookup {{ .Values.pulsar_metadata.configurationStore}}; do
|
||||||
sleep 3;
|
sleep 3;
|
||||||
done;
|
done;
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: wait-zookeeper-ready
|
- name: wait-zookeeper-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||||
|
|||||||
@ -644,6 +644,9 @@ pulsar_metadata:
|
|||||||
# configurationStore:
|
# configurationStore:
|
||||||
configurationStoreMetadataPrefix: ""
|
configurationStoreMetadataPrefix: ""
|
||||||
configurationStorePort: 2181
|
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
|
## optional, you can provide your own zookeeper metadata store for other components
|
||||||
# to use this, you should explicit set components.zookeeper to false
|
# to use this, you should explicit set components.zookeeper to false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user