Merge pull request #11482 from kirillvelikov/master

feat(helm-chart): add support for loadBalancerClass
This commit is contained in:
zhongwencool 2023-08-30 16:11:05 +08:00 committed by GitHub
commit a663a64f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 2 deletions

View File

@ -73,6 +73,7 @@ The following table lists the configurable parameters of the emqx chart and thei
| `service.nodePorts.ws` | Kubernetes node port for WebSocket/HTTP. | nil |
| `service.nodePorts.wss` | Kubernetes node port for WSS/HTTPS. | nil |
| `service.nodePorts.dashboard` | Kubernetes node port for dashboard. | nil |
| `service.loadBalancerClass` | The load balancer implementation this Service belongs to | |
| `service.loadBalancerIP` | loadBalancerIP for Service | nil |
| `service.loadBalancerSourceRanges` | Address(es) that are allowed when service is LoadBalancer | [] |
| `service.externalIPs` | ExternalIPs for the service | [] |

View File

@ -18,6 +18,9 @@ spec:
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | default "Cluster" }}
{{- end }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- if .Values.service.loadBalancerClass }}
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}

View File

@ -163,6 +163,10 @@ service:
wss:
dashboard:
dashboardtls:
## Specifies the load balancer implementation this Service belongs to.
## Once set, it can not be changed.
##
# loadBalancerClass:
## Set the LoadBalancer service type to internal only.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
##
@ -245,7 +249,7 @@ ssl:
useExisting: false
existingName: emqx-tls
dnsnames: []
commonName:
commonName:
issuer:
name: letsencrypt-dns
kind: ClusterIssuer

View File

@ -74,6 +74,7 @@ The following table lists the configurable parameters of the emqx chart and thei
| `service.nodePorts.ws` | Kubernetes node port for WebSocket/HTTP. | nil |
| `service.nodePorts.wss` | Kubernetes node port for WSS/HTTPS. | nil |
| `service.nodePorts.dashboard` | Kubernetes node port for dashboard. | nil |
| `service.loadBalancerClass` | The load balancer implementation this Service belongs to | |
| `service.loadBalancerIP` | loadBalancerIP for Service | nil |
| `service.loadBalancerSourceRanges` | Address(es) that are allowed when service is LoadBalancer | [] |
| `service.externalIPs` | ExternalIPs for the service | [] |

View File

@ -18,6 +18,9 @@ spec:
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | default "Cluster" }}
{{- end }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- if .Values.service.loadBalancerClass }}
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}

View File

@ -163,6 +163,10 @@ service:
wss:
dashboard:
dashboardtls:
## Specifies the load balancer implementation this Service belongs to.
## Once set, it can not be changed.
##
# loadBalancerClass:
## Set the LoadBalancer service type to internal only.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
##
@ -245,7 +249,7 @@ ssl:
useExisting: false
existingName: emqx-tls
dnsnames: []
commonName:
commonName:
issuer:
name: letsencrypt-dns
kind: ClusterIssuer