Skip to content

Commit

Permalink
add grpc and admin ports to pinot server service (#129)
Browse files Browse the repository at this point in the history
* add grpc and admin ports to pinot server service

* change server port name
  • Loading branch information
ravisingal authored Jul 14, 2023
1 parent c4e4418 commit 217580c
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 11 deletions.
4 changes: 3 additions & 1 deletion helm/templates/broker/service-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ metadata:
spec:
type: {{ .Values.broker.external.type }}
ports:
- name: external-broker
- name: http-broker
port: {{ .Values.broker.external.port }}
protocol: TCP
targetPort: http-broker
selector:
app: {{ include "pinot.name" . }}
release: {{ .Release.Name }}
Expand Down
5 changes: 4 additions & 1 deletion helm/templates/broker/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ metadata:
spec:
clusterIP: None
ports:
- port: {{ .Values.broker.service.port }}
- name: http-broker
port: {{ .Values.broker.service.port }}
protocol: TCP
targetPort: http-broker
selector:
app: {{ include "pinot.name" . }}
release: {{ .Release.Name }}
Expand Down
6 changes: 5 additions & 1 deletion helm/templates/broker/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ metadata:
spec:
type: ClusterIP
ports:
- name: request
- name: http-broker
port: {{ .Values.broker.service.port }}
protocol: TCP
targetPort: http-broker
{{- if .Values.broker.prometheus.jmx.enabled }}
- name: http-metrics
port: {{ .Values.broker.prometheus.jmx.port }}
protocol: TCP
targetPort: http-metrics
{{- end }}
selector:
app: {{ include "pinot.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/broker/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
- name: JAVA_OPTS
value: "{{ .Values.broker.jvmOpts }} -Dlog4j2.configurationFile={{ .Values.broker.log4j2ConfFile }} -Dplugins.dir={{ .Values.broker.pluginsDir }} -Djute.maxbuffer=4194304 {{ if .Values.broker.jmx.enabled }}{{ .Values.broker.jmx.opts }}{{ end }}"
ports:
- name: request
- name: http-broker
containerPort: {{ .Values.broker.port }}
protocol: TCP
{{- if .Values.broker.jmx.enabled }}
Expand Down
4 changes: 3 additions & 1 deletion helm/templates/controller/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ metadata:
spec:
clusterIP: None
ports:
- name: rest
- name: http-controller
port: {{ .Values.controller.service.port }}
protocol: TCP
targetPort: http-controller
selector:
app: {{ include "pinot.name" . }}
release: {{ .Release.Name }}
Expand Down
6 changes: 5 additions & 1 deletion helm/templates/controller/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ metadata:
spec:
type: ClusterIP
ports:
- name: rest
- name: http-controller
port: {{ .Values.controller.service.port }}
protocol: TCP
targetPort: http-controller
{{- if .Values.controller.prometheus.jmx.enabled }}
- name: http-metrics
port: {{ .Values.controller.prometheus.jmx.port }}
protocol: TCP
targetPort: http-metrics
{{- end }}
selector:
app: {{ include "pinot.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/controller/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- name: JAVA_OPTS
value: "{{ .Values.controller.jvmOpts }} -Dlog4j2.configurationFile={{ .Values.controller.log4j2ConfFile }} -Dplugins.dir={{ .Values.controller.pluginsDir }} -Djute.maxbuffer=4194304 {{ if .Values.controller.jmx.enabled }}{{ .Values.controller.jmx.opts }}{{ end }}"
ports:
- name: rest
- name: http-controller
containerPort: {{ .Values.controller.port }}
protocol: TCP
{{- if .Values.controller.jmx.enabled }}
Expand Down
5 changes: 4 additions & 1 deletion helm/templates/minion/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ metadata:
spec:
clusterIP: None
ports:
- port: {{ .Values.minion.service.port }}
- name: http-minion
port: {{ .Values.minion.service.port }}
protocol: TCP
targetPort: http-minion
selector:
app: {{ include "pinot.name" . }}
release: {{ .Release.Name }}
Expand Down
6 changes: 5 additions & 1 deletion helm/templates/minion/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ metadata:
spec:
type: ClusterIP
ports:
- name: request
- name: http-minion
port: {{ .Values.minion.service.port }}
protocol: TCP
targetPort: http-minion
{{- if .Values.minion.prometheus.jmx.enabled }}
- name: http-metrics
port: {{ .Values.minion.prometheus.jmx.port }}
protocol: TCP
targetPort: http-metrics
{{- end }}
selector:
app: {{ include "pinot.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/minion/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
- name: JAVA_OPTS
value: "{{ .Values.minion.jvmOpts }} -Dlog4j2.configurationFile={{ .Values.minion.log4j2ConfFile }} -Dplugins.dir={{ .Values.minion.pluginsDir }} -Djute.maxbuffer=4194304 {{ if .Values.minion.jmx.enabled }}{{ .Values.minion.jmx.opts }}{{ end }}"
ports:
- name: request
- name: http-minion
containerPort: {{ .Values.minion.port }}
protocol: TCP
{{- if .Values.minion.jmx.enabled }}
Expand Down
2 changes: 2 additions & 0 deletions helm/templates/server/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ data:
pinot-server.conf: |-
pinot.server.netty.port={{ $tier.ports.netty }}
pinot.server.adminapi.port={{ $tier.ports.admin }}
pinot.server.grpc.port={{ $tier.ports.grpc }}
pinot.server.grpc.enable=true
pinot.server.instance.dataDir={{ $tier.dataDir }}
pinot.server.instance.segmentTarDir={{ $tier.segmentTarDir }}
pinot.set.instance.id.to.hostname=true
Expand Down
10 changes: 10 additions & 0 deletions helm/templates/server/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ spec:
ports:
- name: request
port: {{ $tier.ports.netty }}
protocol: TCP
targetPort: request
- name: http-admin
port: {{ $tier.ports.admin }}
protocol: TCP
targetPort: http-admin
- name: grpc
port: {{ $tier.ports.grpc }}
protocol: TCP
targetPort: grpc
selector:
app: {{ include "pinot.name" $ }}
release: {{ $.Release.Name }}
Expand Down
12 changes: 12 additions & 0 deletions helm/templates/server/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,21 @@ spec:
ports:
- name: request
port: {{ $tier.ports.netty }}
protocol: TCP
targetPort: request
- name: http-admin
port: {{ $tier.ports.admin }}
protocol: TCP
targetPort: http-admin
- name: grpc
port: {{ $tier.ports.grpc }}
protocol: TCP
targetPort: grpc
{{- if $tier.prometheus.jmx.enabled }}
- name: http-metrics
port: {{ $tier.prometheus.jmx.port }}
protocol: TCP
targetPort: http-metrics
{{- end }}
selector:
app: {{ include "pinot.name" $ }}
Expand Down
5 changes: 4 additions & 1 deletion helm/templates/server/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ spec:
- name: request
containerPort: {{ $tier.ports.netty }}
protocol: TCP
- name: admin
- name: http-admin
containerPort: {{ $tier.ports.admin }}
protocol: TCP
- name: grpc
containerPort: {{ $tier.ports.grpc }}
protocol: TCP
{{- if $tier.jmx.enabled }}
- name: jmx
containerPort: {{ $tier.jmx.port }}
Expand Down
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ server:
ports:
netty: 8098
admin: 8097
grpc: 8090

replicaCount: 1

Expand Down

0 comments on commit 217580c

Please sign in to comment.