Skip to content

Commit

Permalink
feat: support kop proxy in chart (#1190)
Browse files Browse the repository at this point in the history
* feat: support kop proxy in chart

Signed-off-by: ericsyh <[email protected]>

* fix lint

Signed-off-by: ericsyh <[email protected]>

---------

Signed-off-by: ericsyh <[email protected]>
(cherry picked from commit da726e7)
  • Loading branch information
ericsyh committed Nov 22, 2024
1 parent aab2b7e commit a3b8ca6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/sn-platform-slim/templates/proxy/proxy-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ spec:
{{- if .Values.pulsar_metadata.clusterName }}
clusterName: {{ .Values.pulsar_metadata.clusterName }}
{{- end }}
{{- if .Values.proxy.kopProxy.enabled }}
kopProxy:
enabled: {{ .Values.proxy.kopProxy.enabled }}
kafkaAdvertisedListener: {{ .Values.proxy.kopProxy.kafkaAdvertisedListener }}
{{- end }}
usePodIPAsAdvertisedAddress: {{ .Values.broker.usePodIPAsAdvertisedAddress | default "false" }}
tls:
enabled: {{ and (.Values.tls.enabled) (.Values.tls.proxy.enabled) }}
Expand Down
5 changes: 5 additions & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,11 @@ proxy:
# limits:
# memory: "512Mi"
# cpu: "0.8"
# Kafka Proxy supports forward the kafka client request to Pulsar Broker, make sure you enable the kop on the Broker component.
kopProxy:
enabled: false
# Specifies the listeners for Kafka clients. In Kubernetes environments, you should configure the external Proxy LoadBalancer type service address or NodePort type service address for this field.
kafkaAdvertisedListener:
# extra environment variable to define for the containers
extraEnv: []
# extra secrets to mount for the pods
Expand Down
5 changes: 5 additions & 0 deletions charts/sn-platform/templates/proxy/proxy-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ spec:
{{- if .Values.pulsar_metadata.clusterName }}
clusterName: {{ .Values.pulsar_metadata.clusterName }}
{{- end }}
{{- if .Values.proxy.kopProxy.enabled }}
kopProxy:
enabled: {{ .Values.proxy.kopProxy.enabled }}
kafkaAdvertisedListener: {{ .Values.proxy.kopProxy.kafkaAdvertisedListener }}
{{- end }}
usePodIPAsAdvertisedAddress: {{ .Values.broker.usePodIPAsAdvertisedAddress | default "false" }}
tls:
enabled: {{ and (.Values.tls.enabled) (.Values.tls.proxy.enabled) }}
Expand Down
5 changes: 5 additions & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,11 @@ proxy:
# limits:
# memory: "512Mi"
# cpu: "0.8"
# Kafka Proxy supports forward the kafka client request to Pulsar Broker, make sure you enable the kop on the Broker component.
kopProxy:
enabled: false
# Specifies the listeners for Kafka clients. In Kubernetes environments, you should configure the external Proxy LoadBalancer type service address or NodePort type service address for this field.
kafkaAdvertisedListener:
# extra environment variable to define for the containers
extraEnv: []
# extra secrets to mount for the pods
Expand Down

0 comments on commit a3b8ca6

Please sign in to comment.