Change default statusFilePath to /pulsar/logs/status (#489)
* Change default statusFilePath to /pulsar/logs/status * Write OK to statusFilePath
This commit is contained in:
parent
59f6f74fd7
commit
bd8bc633df
@ -41,7 +41,7 @@ data:
|
||||
exposeTopicLevelMetricsInPrometheus: "true"
|
||||
numHttpServerThreads: "8"
|
||||
zooKeeperSessionTimeoutMillis: "30000"
|
||||
statusFilePath: "{{ template "pulsar.home" . }}/status"
|
||||
statusFilePath: "{{ template "pulsar.home" . }}/logs/status"
|
||||
|
||||
# Tiered storage settings
|
||||
{{- if .Values.broker.storageOffload.driver }}
|
||||
|
||||
@ -225,7 +225,7 @@ spec:
|
||||
{{- end }}
|
||||
bin/apply-config-from-env.py conf/broker.conf;
|
||||
bin/gen-yml-from-env.py conf/functions_worker.yml;
|
||||
echo "OK" > status;
|
||||
echo "OK" > "${statusFilePath:-status}";
|
||||
{{- include "pulsar.broker.zookeeper.tls.settings" . | nindent 10 }}
|
||||
bin/pulsar zookeeper-shell -server {{ template "pulsar.zookeeper.connect" . }} get {{ template "pulsar.broker.znode" . }};
|
||||
while [ $? -eq 0 ]; do
|
||||
|
||||
@ -28,7 +28,7 @@ metadata:
|
||||
component: {{ .Values.proxy.component }}
|
||||
data:
|
||||
clusterName: {{ template "pulsar.cluster.name" . }}
|
||||
statusFilePath: "{{ template "pulsar.home" . }}/status"
|
||||
statusFilePath: "{{ template "pulsar.home" . }}/logs/status"
|
||||
# prometheus needs to access /metrics endpoint
|
||||
webServicePort: "{{ .Values.proxy.ports.containerPorts.http }}"
|
||||
{{- if or (not .Values.tls.enabled) (not .Values.tls.proxy.enabled) }}
|
||||
|
||||
@ -185,7 +185,7 @@ spec:
|
||||
{{ .Values.proxy.additionalCommand }}
|
||||
{{- end }}
|
||||
bin/apply-config-from-env.py conf/proxy.conf &&
|
||||
echo "OK" > status &&
|
||||
echo "OK" > "${statusFilePath:-status}" &&
|
||||
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
|
||||
ports:
|
||||
# prometheus needs to access /metrics endpoint
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user