From ed53b859d94dee0426202e663e155fc8162c6c98 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Thu, 5 Aug 2021 09:55:40 +0800 Subject: [PATCH] feat(helm): add externalIPs to chart --- deploy/charts/emqx/README.md | 1 + deploy/charts/emqx/templates/service.yaml | 3 +++ deploy/charts/emqx/values.yaml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/deploy/charts/emqx/README.md b/deploy/charts/emqx/README.md index 535ccb8e1..cca0e88bc 100644 --- a/deploy/charts/emqx/README.md +++ b/deploy/charts/emqx/README.md @@ -63,6 +63,7 @@ The following table lists the configurable parameters of the emqx chart and thei | `service.nodePorts.dashboard` | Kubernetes node port for dashboard. |nil| | `service.loadBalancerIP` | loadBalancerIP for Service | nil | | `service.loadBalancerSourceRanges` | Address(es) that are allowed when service is LoadBalancer | [] | +| `service.externalIPs` | ExternalIPs for the service | [] | | `service.annotations` | Service annotations | {}(evaluated as a template)| | `ingress.dashboard.enabled` | Enable ingress for EMQX Dashboard | false | | `ingress.dashboard.path` | Ingress path for EMQX Dashboard | / | diff --git a/deploy/charts/emqx/templates/service.yaml b/deploy/charts/emqx/templates/service.yaml index b3c0d6017..6e31a97c3 100644 --- a/deploy/charts/emqx/templates/service.yaml +++ b/deploy/charts/emqx/templates/service.yaml @@ -21,6 +21,9 @@ spec: {{- if .Values.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }} {{- end }} + {{- if .Values.service.externalIPs }} + externalIPs: {{- toYaml .Values.service.externalIPs | nindent 4 }} + {{- end }} {{- end }} ports: - name: mqtt diff --git a/deploy/charts/emqx/values.yaml b/deploy/charts/emqx/values.yaml index 0e6f24a66..151ffbe33 100644 --- a/deploy/charts/emqx/values.yaml +++ b/deploy/charts/emqx/values.yaml @@ -146,6 +146,9 @@ service: ## - 10.10.10.0/24 ## loadBalancerSourceRanges: [] + ## Set the ExternalIPs + ## + externalIPs: [] ## Provide any additional annotations which may be required. Evaluated as a template ## annotations: {}