helm: Add loadBalancerClass to internal service
This commit is contained in:
parent
9db8fe51c8
commit
27820a91a3
2 changed files with 20 additions and 2 deletions
|
@ -137,6 +137,22 @@ If one of them is missing the internal load balancer will not be deployed. Examp
|
|||
|
||||
Example for AWS:
|
||||
|
||||
* using [AWS Load Balancer Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller/), which is recommanded by AWS, but you will have to install and configure this additional controller:
|
||||
|
||||
```yaml
|
||||
controller:
|
||||
service:
|
||||
# Create internal NLB
|
||||
loadBalancerClass: "service.k8s.aws/nlb"
|
||||
internal:
|
||||
enabled: true
|
||||
annotations:
|
||||
service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
|
||||
# Any other annotation can be declared here.
|
||||
```
|
||||
|
||||
* using the default inside kubernetes controller-manager (not up to date and will be mark as deprecated in futur release of kubernetes):
|
||||
|
||||
```yaml
|
||||
controller:
|
||||
service:
|
||||
|
@ -144,9 +160,8 @@ controller:
|
|||
enabled: true
|
||||
annotations:
|
||||
# Create internal NLB
|
||||
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
|
||||
service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
|
||||
# Create internal ELB(Deprecated)
|
||||
# service.beta.kubernetes.io/aws-load-balancer-internal: "true"
|
||||
# Any other annotation can be declared here.
|
||||
```
|
||||
|
||||
|
|
|
@ -22,6 +22,9 @@ spec:
|
|||
{{- if .Values.controller.service.internal.loadBalancerSourceRanges }}
|
||||
loadBalancerSourceRanges: {{ toYaml .Values.controller.service.internal.loadBalancerSourceRanges | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.service.loadBalancerClass }}
|
||||
loadBalancerClass: {{ .Values.controller.service.loadBalancerClass }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.service.internal.externalTrafficPolicy }}
|
||||
externalTrafficPolicy: {{ .Values.controller.service.internal.externalTrafficPolicy }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue