[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.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
{{- $ensembleSize := .Values.broker.configData.PULSAR_PREFIX_managedLedgerDefaultEnsembleSize }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
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
|
until bin/pulsar zookeeper-shell -server {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }} ls /admin/clusters/{{ template "pulsar.fullname" . }}; do
|
||||||
sleep 3;
|
sleep 3;
|
||||||
done;
|
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:
|
containers:
|
||||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
|||||||
@ -434,10 +434,10 @@ grafana:
|
|||||||
repository: apachepulsar/pulsar-grafana
|
repository: apachepulsar/pulsar-grafana
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources:
|
# resources:
|
||||||
requests:
|
# requests:
|
||||||
memory: 4Gi
|
# memory: 4Gi
|
||||||
cpu: 1
|
# cpu: 1
|
||||||
## Grafana service
|
## Grafana service
|
||||||
## templates/grafana-service.yaml
|
## templates/grafana-service.yaml
|
||||||
##
|
##
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user