Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using Oxia as the metadata store for Pulsar and BookKeeper #544

Merged
merged 68 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
4de4f7e
change oxia templates
yuweisung Nov 6, 2024
8b2eff2
add oxia templates
yuweisung Nov 6, 2024
b9532b8
change to Apache license.
yuweisung Nov 8, 2024
205eaf6
add oxia to pulsar-init-job
yuweisung Nov 11, 2024
782988c
licenses
yuweisung Nov 11, 2024
496daa4
fix comment space
yuweisung Nov 12, 2024
79927af
add namespace and name
yuweisung Nov 12, 2024
d325c12
fix pvc name
yuweisung Nov 12, 2024
4438a4f
fix doublequotes
yuweisung Nov 13, 2024
33bfdc1
fix more doublequotes
yuweisung Nov 13, 2024
5f6fcd3
remove outputfile
yuweisung Nov 13, 2024
8c09109
fix init container
yuweisung Nov 13, 2024
3b3280e
fixing init job
yuweisung Nov 14, 2024
6d8ded4
fixing init job
yuweisung Nov 14, 2024
2cbedf5
fixed init script
yuweisung Nov 14, 2024
6baf0c0
fix syntax
yuweisung Nov 14, 2024
1a2437a
add oxia values example
yuweisung Nov 14, 2024
c8750a1
rollback gitignore
yuweisung Nov 14, 2024
989172f
fix bookie common tpl
yuweisung Nov 14, 2024
24fa456
add metastore timeout
yuweisung Nov 14, 2024
817803e
Test Oxia in CI
lhotari Nov 20, 2024
c94546d
Make the default for configurationStorePort to be 6648 when oxia is e…
lhotari Nov 20, 2024
31579ff
Add license header and minimize the example
lhotari Nov 20, 2024
1ee80a2
Disable wait-zookeeper-ready init containers when zookeeper isn't ena…
lhotari Nov 20, 2024
27e4d73
Fix template name
lhotari Nov 20, 2024
826eaff
Fix TLS issue in pulsar-cluster-initialize.yaml template
lhotari Nov 20, 2024
b094b1a
Fix oxia-server-statefulset volume name
lhotari Nov 20, 2024
5476ee2
Fix issue: sh: nslookuppulsar-ci-oxia-svc: not found
lhotari Nov 20, 2024
c7b4406
Don't run zookeeper-shell in bookkeeper-cluster-initialize unless zoo…
lhotari Nov 20, 2024
02ce2f0
Set export BOOKIE_MEM="-Xmx128M" in all verify_cluster_id init contai…
lhotari Nov 20, 2024
e02ca57
Configure Oxia for BookKeeper
lhotari Nov 20, 2024
2a549a1
Start adding Oxia config for broker and bookkeeper
lhotari Nov 20, 2024
e501e20
Use pulsar.oxia.connect template
lhotari Nov 20, 2024
4e0b4c2
Configure broker and bookkeeper namespaces in Oxia
lhotari Nov 21, 2024
491dae9
Rename template oxia.coordinator.CMProperties to oxia.coordinator.con…
lhotari Nov 21, 2024
bc7fe2e
Improve oxia configuration
lhotari Nov 21, 2024
491ecd2
Limit configurationStore, configurationStoreMetadataPrefix and config…
lhotari Nov 21, 2024
414ca4c
Merge remote-tracking branch 'origin/master' into add-oxia-subchart
lhotari Nov 21, 2024
a9fa703
Improve condition for wait timeout
lhotari Nov 21, 2024
e525de2
Improve clarity of Oxia configuration for memory limits
lhotari Nov 21, 2024
8cad538
Revert changes to _configurationstore.tpl
lhotari Nov 21, 2024
3308274
Add missing space
lhotari Nov 21, 2024
598d5d4
Make broker startup work for Oxia
lhotari Nov 21, 2024
21fd39d
Revert changes to .gitignore
lhotari Nov 21, 2024
fc319c9
Remove invalid rules in oxia-coordinator-role
lhotari Nov 21, 2024
650cdfe
Add "Limit" postfix to coordinator limits in values.yaml
lhotari Nov 21, 2024
50d4986
Use podmonitor to enable metrics for Oxia coordinator and server comp…
lhotari Nov 21, 2024
682a51f
Remove redundant servicemonitor templates
lhotari Nov 21, 2024
e57c050
Enable oxia podmonitors only when oxia is enabled
lhotari Nov 21, 2024
cd4b293
fix oxia tpl
yuweisung Nov 21, 2024
2ec9cd5
Use similar solution for matchLabels and labels in Oxia components as…
lhotari Nov 21, 2024
4564332
Validate Oxia templates with kubeconform
lhotari Nov 21, 2024
1255018
Fix extra args logging
lhotari Nov 21, 2024
3d9abca
Wait for Oxia in initialization
lhotari Nov 21, 2024
ea2f387
Wait for Oxia before bookkeeper initialization
lhotari Nov 21, 2024
c26126b
Add waiting for Oxia before broker and proxy get started
lhotari Nov 21, 2024
c4ec6bf
Use most recent Oxia version
lhotari Nov 21, 2024
f1bbc4f
Add default shard
lhotari Nov 21, 2024
39319b5
Downgrade Oxia to 0.8.0 to match oxia-java 0.4.5
lhotari Nov 21, 2024
7f2909f
Use public port for connecting
lhotari Nov 21, 2024
d58676c
Add mandatory configuration-store parameter to initialization
lhotari Nov 21, 2024
8a0bd8f
Revert "Downgrade Oxia to 0.8.0 to match oxia-java 0.4.5"
lhotari Nov 21, 2024
214a8b0
Add support for nodeSelector, tolerations, topologySpreadConstraints,…
lhotari Nov 21, 2024
02c7f98
Trim trailing whitespace
lhotari Nov 21, 2024
053a4e3
Specify configurationMetadataStoreUrl
lhotari Nov 21, 2024
7740a2d
Don't enable state store unless Zookeeper is used
lhotari Nov 22, 2024
bf3ee75
Revert "Don't enable state store unless Zookeeper is used"
lhotari Nov 22, 2024
9c78dfb
Disable testing functions with Oxia
lhotari Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .ci/clusters/values-oxia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

components:
zookeeper: false
oxia: true
# disable functions for oxia tests since there's no support for Oxia in
# BookKeeperPackagesStorage which requires Zookeeper
functions: false

oxia:
initialShardCount: 1
replicationFactor: 1
server:
replicas: 1
memoryLimit: 256Mi
dbCacheSizeMb: 128
storageSize: 1Gi
8 changes: 8 additions & 0 deletions .ci/values-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,11 @@ proxy:

toolset:
useProxy: false

oxia:
coordinator:
podMonitor:
enabled: false
server:
podMonitor:
enabled: false
16 changes: 13 additions & 3 deletions .github/workflows/pulsar-helm-chart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,22 @@ jobs:
helm dependency build charts/pulsar
validate_helm_template_with_k8s_version() {
local kube_version=$1
echo "Validating helm template with kubeconform for k8s version $kube_version"
helm template charts/pulsar --set kube-prometheus-stack.enabled=false --set components.pulsar_manager=true --kube-version $kube_version | \
shift
echo -n "Validating helm template with kubeconform for k8s version $kube_version"
if [ $# -gt 0 ]; then
echo " Extra args: $*"
else
echo ""
fi
helm template charts/pulsar --set kube-prometheus-stack.enabled=false --set components.pulsar_manager=true --kube-version $kube_version "$@" | \
kubeconform -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' -strict -kubernetes-version $kube_version -summary
}
set -o pipefail
for k8s_version_part in {23..30}; do
k8s_version="1.${k8s_version_part}.0"
echo "Validating helm template with kubeconform for k8s version $k8s_version"
validate_helm_template_with_k8s_version $k8s_version
echo "Validating with Oxia enabled"
validate_helm_template_with_k8s_version $k8s_version --set components.zookeeper=false --set components.oxia=true
done
- name: Wait for ssh connection when build fails
# ssh access is enabled for builds in own forks
Expand Down Expand Up @@ -208,6 +215,9 @@ jobs:
- name: Pulsar Manager
values_file: .ci/clusters/values-pulsar-manager.yaml
shortname: pulsar-manager
- name: Oxia
values_file: .ci/clusters/values-oxia.yaml
shortname: oxia
include:
- k8sVersion:
version: "1.23.17"
Expand Down
1 change: 1 addition & 0 deletions charts/pulsar/templates/_autorecovery.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Define autorecovery init container : verify cluster id
*/}}
{{- define "pulsar.autorecovery.init.verify_cluster_id" -}}
bin/apply-config-from-env.py conf/bookkeeper.conf;
export BOOKIE_MEM="-Xmx128M";
{{- include "pulsar.autorecovery.zookeeper.tls.settings" . -}}
until timeout 15 bin/bookkeeper shell whatisinstanceid; do
sleep 3;
Expand Down
6 changes: 6 additions & 0 deletions charts/pulsar/templates/_bookkeeper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ Define bookie tls certs volumes
Define bookie common config
*/}}
{{- define "pulsar.bookkeeper.config.common" -}}
{{- if .Values.components.zookeeper }}
zkServers: "{{ template "pulsar.zookeeper.connect" . }}"
zkLedgersRootPath: "{{ .Values.metadataPrefix }}/ledgers"
{{- else if .Values.components.oxia }}
metadataServiceUri: "{{ template "pulsar.oxia.metadata.url.bookkeeper" . }}"
{{- end }}
# enable bookkeeper http server
httpServerEnabled: "true"
httpServerPort: "{{ .Values.bookkeeper.ports.http }}"
Expand Down Expand Up @@ -123,6 +127,7 @@ Define bookie init container : verify cluster id
{{- define "pulsar.bookkeeper.init.verify_cluster_id" -}}
{{- if not (and .Values.volumes.persistence .Values.bookkeeper.volumes.persistence) }}
bin/apply-config-from-env.py conf/bookkeeper.conf;
export BOOKIE_MEM="-Xmx128M";
{{- include "pulsar.bookkeeper.zookeeper.tls.settings" . -}}
until timeout 15 bin/bookkeeper shell whatisinstanceid; do
sleep 3;
Expand All @@ -132,6 +137,7 @@ bin/bookkeeper shell bookieformat -nonInteractive -force -deleteCookie || true
{{- if and .Values.volumes.persistence .Values.bookkeeper.volumes.persistence }}
set -e;
bin/apply-config-from-env.py conf/bookkeeper.conf;
export BOOKIE_MEM="-Xmx128M";
{{- include "pulsar.bookkeeper.zookeeper.tls.settings" . -}}
until timeout 15 bin/bookkeeper shell whatisinstanceid; do
sleep 3;
Expand Down
1 change: 1 addition & 0 deletions charts/pulsar/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ Lookup pull policy, default to defaultPullPolicy
{{- define "pulsar.imagePullPolicy" -}}
{{- printf "%s" (.image.pullPolicy | default .root.Values.defaultPullPolicy) -}}
{{- end -}}

110 changes: 110 additions & 0 deletions charts/pulsar/templates/_oxia.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{{/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/}}

{{/*
Probe
*/}}
{{- define "oxia-cluster.probe" -}}
exec:
command: ["oxia", "health", "--port={{ . }}"]
initialDelaySeconds: 10
timeoutSeconds: 10
{{- end }}


{{/*
Probe
*/}}
{{- define "oxia-cluster.readiness-probe" -}}
exec:
command: ["oxia", "health", "--port={{ . }}", "--service=oxia-readiness"]
initialDelaySeconds: 10
timeoutSeconds: 10
{{- end }}

{{/*
Probe
*/}}
{{- define "oxia-cluster.startup-probe" -}}
exec:
command: ["oxia", "health", "--port={{ . }}"]
initialDelaySeconds: 60
timeoutSeconds: 10
{{- end }}

{{/*
Define the pulsar oxia
*/}}
{{- define "pulsar.oxia.server.service" -}}
{{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc
{{- end }}

{{/*
oxia url for broker metadata
*/}}
{{- define "pulsar.oxia.metadata.url.broker" -}}
{{- if .Values.components.oxia -}}
oxia://{{ template "pulsar.oxia.server.service" . }}:{{ .Values.oxia.server.ports.public }}/broker
{{- end -}}
{{- end -}}

{{/*
oxia url for bookkeeper metadata
*/}}
{{- define "pulsar.oxia.metadata.url.bookkeeper" -}}
{{- if .Values.components.oxia -}}
metadata-store:oxia://{{ template "pulsar.oxia.server.service" . }}:{{ .Values.oxia.server.ports.public }}/bookkeeper
{{- end -}}
{{- end -}}

{{/*
Define coordinator configmap
*/}}
{{- define "oxia.coordinator.config.yaml" -}}
namespaces:
- name: default
initialShardCount: {{ .Values.oxia.initialShardCount }}
replicationFactor: {{ .Values.oxia.replicationFactor }}
- name: broker
initialShardCount: {{ .Values.oxia.initialShardCount }}
replicationFactor: {{ .Values.oxia.replicationFactor }}
- name: bookkeeper
initialShardCount: {{ .Values.oxia.initialShardCount }}
replicationFactor: {{ .Values.oxia.replicationFactor }}
servers:
- public: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.public }}
internal: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc:{{ .Values.oxia.server.ports.internal }}
{{- end }}

{{/*
Define coordinator entrypoint
*/}}
{{- define "oxia.coordinator.entrypoint" -}}
- "oxia"
- "coordinator"
- "--conf=configmap:{{ template "pulsar.namespace" . }}/{{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-coordinator"
- "--log-json"
- "--metadata=configmap"
- "--k8s-namespace={{ template "pulsar.namespace" . }}"
- "--k8s-configmap-name={{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-coordinator-status"
{{- if .Values.oxia.pprofEnabled }}
- "--profile"
{{- end}}
{{- end}}

1 change: 1 addition & 0 deletions charts/pulsar/templates/_zookeeper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ Define zookeeper tls settings
/pulsar/keytool/keytool.sh zookeeper {{ template "pulsar.zookeeper.hostname" . }} false;
{{- end }}
{{- end }}

2 changes: 1 addition & 1 deletion charts/pulsar/templates/autorecovery-service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.autorecovery.component }}
annotations:
{{- with .Values.autorecovery.service_account.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/pulsar/templates/autorecovery-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
terminationGracePeriodSeconds: {{ .Values.autorecovery.gracePeriod }}
serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
initContainers:
{{- if and .Values.autorecovery.waitBookkeeperTimeout (not (eq (.Values.autorecovery.waitBookkeeperTimeout | toString) "0")) }}
{{- if and .Values.autorecovery.waitBookkeeperTimeout (gt (.Values.autorecovery.waitBookkeeperTimeout | int) 0) }}
# This initContainer will wait for bookkeeper initnewcluster to complete
# before deploying the bookies
- name: pulsar-bookkeeper-verify-clusterid
Expand Down
20 changes: 16 additions & 4 deletions charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ spec:
spec:
{{- include "pulsar.imagePullSecrets" . | nindent 6 }}
serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
{{- with .Values.pulsar_metadata.nodeSelector }}
nodeSelector:
{{- if .Values.pulsar_metadata.nodeSelector }}
{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
{{- end }}
{{- with .Values.pulsar_metadata.tolerations }}
tolerations:
{{- if .Values.pulsar_metadata.tolerations }}
{{ toYaml .Values.pulsar_metadata.tolerations | indent 8 }}
{{- end }}
initContainers:
{{- if and .Values.bookkeeper.metadata.waitZookeeperTimeout (not (eq (.Values.bookkeeper.metadata.waitZookeeperTimeout | toString) "0")) }}
{{- if and .Values.components.zookeeper .Values.bookkeeper.metadata.waitZookeeperTimeout (gt (.Values.bookkeeper.metadata.waitZookeeperTimeout | int) 0) }}
- name: wait-zookeeper-ready
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.images.bookie "root" .) }}"
Expand All @@ -64,6 +64,18 @@ spec:
done;
{{- end}}
{{- end}}
{{- if and .Values.components.oxia .Values.bookkeeper.metadata.waitOxiaTimeout (gt (.Values.bookkeeper.metadata.waitOxiaTimeout | int) 0) }}
- name: wait-oxia-ready
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.images.bookie "root" .) }}"
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
command: ["timeout", "{{ .Values.bookkeeper.metadata.waitOxiaTimeout }}", "sh", "-c"]
args:
- >-
until nslookup {{ template "pulsar.oxia.server.service" . }}; do
sleep 3;
done;
{{- end }}
containers:
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-init"
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
Expand All @@ -81,7 +93,7 @@ spec:
if timeout 15 bin/bookkeeper shell whatisinstanceid; then
echo "bookkeeper cluster already initialized";
else
{{- if not (eq .Values.metadataPrefix "") }}
{{- if and .Values.components.zookeeper (not (eq .Values.metadataPrefix "")) }}
bin/pulsar zookeeper-shell -server {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }} create {{ .Values.metadataPrefix }} && echo 'created for pulsar cluster "{{ template "pulsar.cluster.name" . }}"' &&
{{- end }}
bin/bookkeeper shell initnewcluster;
Expand Down
2 changes: 1 addition & 1 deletion charts/pulsar/templates/bookkeeper-service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.bookkeeper.component }}
annotations:
{{- with .Values.bookkeeper.service_account.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
6 changes: 3 additions & 3 deletions charts/pulsar/templates/bookkeeper-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
affinity:
{{- if and .Values.affinity.anti_affinity .Values.bookkeeper.affinity.anti_affinity}}
podAntiAffinity:
{{ if eq .Values.bookkeeper.affinity.type "requiredDuringSchedulingIgnoredDuringExecution"}}
{{- if eq .Values.bookkeeper.affinity.type "requiredDuringSchedulingIgnoredDuringExecution"}}
{{ .Values.bookkeeper.affinity.type }}:
- labelSelector:
matchExpressions:
Expand All @@ -83,7 +83,7 @@ spec:
values:
- {{ .Values.bookkeeper.component }}
topologyKey: {{ .Values.bookkeeper.affinity.anti_affinity_topology_key }}
{{ else }}
{{- else }}
{{ .Values.bookkeeper.affinity.type }}:
- weight: 100
podAffinityTerm:
Expand All @@ -110,7 +110,7 @@ spec:
securityContext:
{{ toYaml .Values.bookkeeper.securityContext | indent 8 }}
{{- end }}
{{- if and .Values.bookkeeper.waitMetadataTimeout (not (eq (.Values.bookkeeper.waitMetadataTimeout | toString) "0")) }}
{{- if and .Values.bookkeeper.waitMetadataTimeout (gt (.Values.bookkeeper.waitMetadataTimeout | int) 0) }}
initContainers:
# This initContainer will wait for bookkeeper initnewcluster to complete
# before deploying the bookies
Expand Down
7 changes: 7 additions & 0 deletions charts/pulsar/templates/broker-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ metadata:
component: {{ .Values.broker.component }}
data:
# Metadata settings
{{- if .Values.components.zookeeper }}
zookeeperServers: "{{ template "pulsar.zookeeper.connect" . }}{{ .Values.metadataPrefix }}"
{{- if .Values.pulsar_metadata.configurationStore }}
configurationStoreServers: "{{ template "pulsar.configurationStore.connect" . }}{{ .Values.pulsar_metadata.configurationStoreMetadataPrefix }}"
{{- end }}
{{- if not .Values.pulsar_metadata.configurationStore }}
configurationStoreServers: "{{ template "pulsar.zookeeper.connect" . }}{{ .Values.metadataPrefix }}"
{{- end }}
{{- end }}
{{- if .Values.components.oxia }}
metadataStoreUrl: "{{ template "pulsar.oxia.metadata.url.broker" . }}"
configurationMetadataStoreUrl: "{{ template "pulsar.oxia.metadata.url.broker" . }}"
bookkeeperMetadataServiceUri: "{{ template "pulsar.oxia.metadata.url.bookkeeper" . }}"
{{- end }}

# Broker settings
clusterName: {{ template "pulsar.cluster.name" . }}
Expand Down
4 changes: 2 additions & 2 deletions charts/pulsar/templates/broker-service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.broker.component }}
annotations:
{{- with .Values.broker.service_account.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
---
Expand All @@ -42,8 +42,8 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.functions.component }}
annotations:
{{- with .Values.functions.service_account.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
---
Expand Down
4 changes: 3 additions & 1 deletion charts/pulsar/templates/broker-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.broker.component }}
{{- with .Values.broker.service_account.annotations }}
annotations:
{{ toYaml .Values.broker.service.annotations | indent 4 }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
Loading
Loading