1
0
Fork 0

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:
Joao Gilberto Magalhaes 2026-02-22 21:35:03 -05:00
parent 6939c593a3
commit 2b7b2c887f
8 changed files with 55 additions and 26 deletions

View file

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.1
version: 2.0.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View file

@ -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

View file

@ -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 }}

View file

@ -24,6 +24,7 @@ binding:
http: 80
https: 443
stats: 1936
dashboard: 11936
additionalPorts: []
serviceAccount:
@ -80,6 +81,7 @@ easyhaproxy:
stats:
username: admin
password: password
corsOrigin: ""
refresh: "10"
customErrors: "true"
sslMode: loose