Skip to content

Commit

Permalink
[Enhancement] support service annotations for fe proxy (#572)
Browse files Browse the repository at this point in the history
Signed-off-by: yandongxiao <[email protected]>
  • Loading branch information
yandongxiao authored Jul 24, 2024
1 parent 5675e51 commit 3e89206
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,10 @@ spec:
{{- if .Values.starrocksFeProxySpec.service.type }}
service:
type: {{ .Values.starrocksFeProxySpec.service.type }}
{{- if .Values.starrocksFeProxySpec.service.annotations }}
annotations:
{{- toYaml .Values.starrocksFeProxySpec.service.annotations | nindent 8 }}
{{- end }}
{{- if and (eq "LoadBalancer" .Values.starrocksFeProxySpec.service.type) .Values.starrocksFeProxySpec.service.loadbalancerIP }}
loadBalancerIP: {{ .Values.starrocksFeProxySpec.service.loadbalancerIP }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,8 @@ starrocksFeProxySpec:
type: ClusterIP
# the loadBalancerIP for static ip config when the type=LoadBalancer and loadbalancerIp is not empty.
loadbalancerIP: ""
# add annotations for fe service.
annotations: {}
# config the service port for fe proxy service.
# To assign a specific port or nodePort to a service, you should specify them by the corresponding name or
# containerPort in the service configuration. If both containerPort and name are specified, containerPort takes precedence.
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/charts/kube-starrocks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,8 @@ starrocks:
type: ClusterIP
# the loadBalancerIP for static ip config when the type=LoadBalancer and loadbalancerIp is not empty.
loadbalancerIP: ""
# add annotations for fe service.
annotations: {}
# config the service port for fe proxy service.
# To assign a specific port or nodePort to a service, you should specify them by the corresponding name or
# containerPort in the service configuration. If both containerPort and name are specified, containerPort takes precedence.
Expand Down

0 comments on commit 3e89206

Please sign in to comment.