Add dashboard port and CORS origin support to Helm chart (2.0.2)
- Add binding.ports.dashboard (default 11936) to values, deployment, and service templates - Add easyhaproxy.stats.corsOrigin value mapped to HAPROXY_STATS_CORS_ORIGIN env var - Bump chart version to 2.0.2 - Regenerate deploy/kubernetes manifests - Update docs/reference/helm.md with new values
This commit is contained in:
parent
6939c593a3
commit
2b7b2c887f
8 changed files with 55 additions and 26 deletions
|
|
@ -48,6 +48,9 @@ spec:
|
|||
- name: stats
|
||||
containerPort: 1936
|
||||
{{ if not .Values.service.create }}hostPort: {{ .Values.binding.ports.stats }}{{ end }}
|
||||
- name: dashboard
|
||||
containerPort: 11936
|
||||
{{ if not .Values.service.create }}hostPort: {{ .Values.binding.ports.dashboard }}{{ end }}
|
||||
{{- range $port := .Values.binding.additionalPorts }}
|
||||
- name: extra{{ $port }}
|
||||
containerPort: {{ $port }}
|
||||
|
|
@ -62,6 +65,10 @@ spec:
|
|||
value: {{ .Values.easyhaproxy.stats.username }}
|
||||
- name: HAPROXY_PASSWORD
|
||||
value: {{ .Values.easyhaproxy.stats.password }}
|
||||
{{- if .Values.easyhaproxy.stats.corsOrigin }}
|
||||
- name: HAPROXY_STATS_CORS_ORIGIN
|
||||
value: {{ .Values.easyhaproxy.stats.corsOrigin | quote }}
|
||||
{{- end }}
|
||||
- name: EASYHAPROXY_REFRESH_CONF
|
||||
value: {{ .Values.easyhaproxy.refresh | quote }}
|
||||
- name: HAPROXY_CUSTOMERRORS
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ spec:
|
|||
- name: stats
|
||||
port: 1936
|
||||
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.binding.ports.stats }}{{ end }}
|
||||
- name: dashboard
|
||||
port: 11936
|
||||
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.binding.ports.dashboard }}{{ end }}
|
||||
{{- range $port := .Values.binding.additionalPorts }}
|
||||
- name: extra{{ $port }}
|
||||
port: {{ $port }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue