Skip to content

Commit

Permalink
expose admin port of pulsar manager in service (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortom123 authored Jan 25, 2024
1 parent de4d2e7 commit 8cd3a04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/pulsar/templates/pulsar-manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ spec:
{{- end }}
ports:
- containerPort: {{ .Values.pulsar_manager.service.targetPort }}
- containerPort: {{ .Values.pulsar_manager.service.adminTargetPort }}
volumeMounts:
- name: pulsar-manager-data
mountPath: /data
Expand Down
4 changes: 4 additions & 0 deletions charts/pulsar/templates/pulsar-manager-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
port: {{ .Values.pulsar_manager.service.port }}
targetPort: {{ .Values.pulsar_manager.service.targetPort }}
protocol: TCP
- name: admin
port: {{ .Values.pulsar_manager.service.adminPort }}
targetPort: {{ .Values.pulsar_manager.service.adminTargetPort }}
protocol: TCP
selector:
{{- include "pulsar.matchLabels" . | nindent 4 }}
component: {{ .Values.pulsar_manager.component }}
Expand Down
4 changes: 4 additions & 0 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,12 @@ pulsar_manager:
##
service:
type: LoadBalancer

port: 9527
targetPort: 9527
adminPort: 7750
adminTargetPort: 7750

annotations: {}
## Set external traffic policy to: "Local" to preserve source IP on providers supporting it.
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
Expand Down

0 comments on commit 8cd3a04

Please sign in to comment.