[Issue:5818]Set the startup order of broker and bookie (#5957)
Signed-off-by: xiaolong.ran <rxl@apache.org> Set the startup order of broker and bookie
This commit is contained in:
parent
cea744e9a7
commit
f76253d699
@ -17,6 +17,7 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
{{- $ensembleSize := .Values.broker.configData.PULSAR_PREFIX_managedLedgerDefaultEnsembleSize }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@ -85,6 +86,18 @@ spec:
|
||||
until bin/pulsar zookeeper-shell -server {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }} ls /admin/clusters/{{ template "pulsar.fullname" . }}; do
|
||||
sleep 3;
|
||||
done;
|
||||
# This init container will wait for bookkeeper to be ready before
|
||||
# deploying the broker
|
||||
- name: wait-bookkeeper-ready
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
bin/apply-config-from-env.py conf/bookkeeper.conf &&
|
||||
until bin/bookkeeper shell simpletest -ensemble {{$ensembleSize}}; do
|
||||
sleep 3;
|
||||
done;
|
||||
containers:
|
||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
|
||||
@ -434,10 +434,10 @@ grafana:
|
||||
repository: apachepulsar/pulsar-grafana
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
memory: 4Gi
|
||||
cpu: 1
|
||||
# resources:
|
||||
# requests:
|
||||
# memory: 4Gi
|
||||
# cpu: 1
|
||||
## Grafana service
|
||||
## templates/grafana-service.yaml
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user