Skip to content

Commit

Permalink
fix: pulsar create failed in huawei cloud (#5623)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei authored Oct 25, 2023
1 parent e2cc0af commit 269bd9e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deploy/helm/templates/addons/pulsar-addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ spec:
version: {{ default .Chart.Version .Values.versionOverride }}
{{- end }}

installValues:
{{- $cloudProvider := (include "kubeblocks.cloudProvider" .) }}
{{- if eq $cloudProvider "huaweiCloud" }}
setValues:
- cloudProvider=huaweiCloud
{{- end }}

installable:
autoInstall: true

Expand Down
3 changes: 3 additions & 0 deletions deploy/pulsar/templates/pulsar-config-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ metadata:
data:
broker.conf: |-
{{- .Files.Get "config/broker-config.tpl" | nindent 4 }}
{{- if eq .Values.cloudProvider "huaweiCloud" }}
loadBalancerOverrideBrokerNicSpeedGbps=2
{{- end }}
---

apiVersion: v1
Expand Down
4 changes: 3 additions & 1 deletion deploy/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ metrics:
port: 1234


clusterDomain: ".cluster.local"
clusterDomain: ".cluster.local"

cloudProvider: ""

0 comments on commit 269bd9e

Please sign in to comment.