This commit is contained in:
marsal wang
2022-01-10 14:52:43 +08:00
parent 30022aa727
commit b3602d3646
3 changed files with 31 additions and 0 deletions

View File

@ -75,6 +75,17 @@ spec:
targetPort: stats
{{- if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- else if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.stompNodePort)) }}
nodePort: {{ .Values.service.stompNodePort }}
{{- end }}
{{- end }}
{{- if .Values.service.stompPortEnabled }}
- name: {{ .Values.service.stompPortName }}
port: {{ .Values.service.stompPort }}
targetPort: stats
{{- if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- else if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.managerNodePort)) }}
nodePort: {{ .Values.service.managerNodePort }}
{{- end }}