feat(helm_chart): TLS support for dashboard (#3935)
* Add TLS support to dashboard
This commit is contained in:
parent
efb32e9903
commit
2e4ffa1f4c
|
@ -100,6 +100,10 @@ spec:
|
||||||
containerPort: {{ .Values.emqxConfig.EMQX_LISTENER__WSS__EXTERNAL | default 8084 }}
|
containerPort: {{ .Values.emqxConfig.EMQX_LISTENER__WSS__EXTERNAL | default 8084 }}
|
||||||
- name: dashboard
|
- name: dashboard
|
||||||
containerPort: {{ .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTP | default 18083 }}
|
containerPort: {{ .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTP | default 18083 }}
|
||||||
|
{{- if not (empty .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTPS) }}
|
||||||
|
- name: dashboardtls
|
||||||
|
containerPort: {{ .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTPS }}
|
||||||
|
{{- end }}
|
||||||
- name: ekka
|
- name: ekka
|
||||||
containerPort: 4370
|
containerPort: 4370
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|
|
@ -77,6 +77,17 @@ spec:
|
||||||
{{- else if eq .Values.service.type "ClusterIP" }}
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
||||||
nodePort: null
|
nodePort: null
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if not (empty .Values.service.dashboardtls) }}
|
||||||
|
- name: dashboardtls
|
||||||
|
port: {{ .Values.service.dashboardtls }}
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: dashboardtls
|
||||||
|
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.dashboardtls)) }}
|
||||||
|
nodePort: {{ .Values.service.nodePorts.dashboardtls }}
|
||||||
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
||||||
|
nodePort: null
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ include "emqx.name" . }}
|
app.kubernetes.io/name: {{ include "emqx.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
|
|
@ -101,6 +101,9 @@ service:
|
||||||
## Port for dashboard
|
## Port for dashboard
|
||||||
##
|
##
|
||||||
dashboard: 18083
|
dashboard: 18083
|
||||||
|
## Port for dashboard HTTPS
|
||||||
|
##
|
||||||
|
# dashboardtls: 18084
|
||||||
## Specify the nodePort(s) value for the LoadBalancer and NodePort service types.
|
## Specify the nodePort(s) value for the LoadBalancer and NodePort service types.
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
||||||
##
|
##
|
||||||
|
@ -111,6 +114,7 @@ service:
|
||||||
ws:
|
ws:
|
||||||
wss:
|
wss:
|
||||||
dashboard:
|
dashboard:
|
||||||
|
dashboardtls:
|
||||||
## Set the LoadBalancer service type to internal only.
|
## Set the LoadBalancer service type to internal only.
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue