feat(helm): add option to customize `clusterIP`

Fixes https://github.com/emqx/emqx/issues/10223

Adds an option to set `clusterIP` to a fixed IP if the user wants
that.
This commit is contained in:
Thales Macedo Garitezi 2023-03-23 12:20:46 -03:00
parent 2803aff798
commit 9031c398fb
4 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,2 @@
Add the option to customize `clusterIP` in Helm chart, so that an user
may set it to a fixed IP.

View File

@ -114,7 +114,7 @@ metadata:
spec: spec:
type: ClusterIP type: ClusterIP
sessionAffinity: None sessionAffinity: None
clusterIP: None clusterIP: {{ .Values.service.clusterIP | default "None" }}
publishNotReadyAddresses: true publishNotReadyAddresses: true
ports: ports:
- name: mqtt - name: mqtt

View File

@ -114,7 +114,7 @@ metadata:
spec: spec:
type: ClusterIP type: ClusterIP
sessionAffinity: None sessionAffinity: None
clusterIP: None clusterIP: {{ .Values.service.clusterIP | default "None" }}
publishNotReadyAddresses: true publishNotReadyAddresses: true
ports: ports:
- name: mqtt - name: mqtt

View File

@ -128,6 +128,9 @@ service:
## Service type ## Service type
## ##
type: ClusterIP type: ClusterIP
## The cluster IP if one wants to customize it to a fixed value
##
clusterIP: None
## Port for MQTT ## Port for MQTT
## ##
mqtt: 1883 mqtt: 1883