Add ability to run extra commands in the initialization jobs e.g. to quit istio sidecars (#181)
This commit is contained in:
parent
41dd2f5034
commit
a919f309c6
@ -21,7 +21,7 @@ apiVersion: v1
|
||||
appVersion: "2.7.4"
|
||||
description: Apache Pulsar Helm chart for Kubernetes
|
||||
name: pulsar
|
||||
version: 2.7.7
|
||||
version: 2.7.8
|
||||
home: https://pulsar.apache.org
|
||||
sources:
|
||||
- https://github.com/apache/pulsar
|
||||
|
||||
@ -69,6 +69,9 @@ spec:
|
||||
{{- end }}
|
||||
bin/bookkeeper shell initnewcluster;
|
||||
fi
|
||||
{{- if .Values.extraInitCommand }}
|
||||
{{ .Values.extraInitCommand }}
|
||||
{{- end }}
|
||||
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
|
||||
@ -101,6 +101,9 @@ spec:
|
||||
--web-service-url-tls https://{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}:{{ .Values.broker.ports.https }}/ \
|
||||
--broker-service-url pulsar://{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}:{{ .Values.broker.ports.pulsar }}/ \
|
||||
--broker-service-url-tls pulsar+ssl://{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}:{{ .Values.broker.ports.pulsarssl }}/ ;
|
||||
{{- if .Values.extraInitCommand }}
|
||||
{{ .Values.extraInitCommand }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
{{- include "pulsar.toolset.certs.volumeMounts" . | nindent 8 }}
|
||||
volumes:
|
||||
|
||||
@ -627,6 +627,9 @@ pulsar_metadata:
|
||||
#
|
||||
# userProvidedZookeepers: "zk01.example.com:2181,zk02.example.com:2181"
|
||||
|
||||
# Can be used to run extra commands in the initialization jobs e.g. to quit istio sidecars etc.
|
||||
extraInitCommand: ""
|
||||
|
||||
## Pulsar: Broker cluster
|
||||
## templates/broker-statefulset.yaml
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user