add target group binding object for using existing aws lb
This commit is contained in:
parent
df9d0e1755
commit
34656ba3fb
2 changed files with 22 additions and 0 deletions
16
charts/ingress-nginx/templates/TargetGroupBinding.yaml
Normal file
16
charts/ingress-nginx/templates/TargetGroupBinding.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{- if and (eq .Values.controller.service.type "NodePort") (.Values.controller.service.awsTargetGroupBinding.enabled) }}
|
||||
{{- range $key, $value := .Values.controller.service.awsTargetGroupBinding.arnMapping }}
|
||||
---
|
||||
apiVersion: elbv2.k8s.aws/v1beta1
|
||||
kind: TargetGroupBinding
|
||||
metadata:
|
||||
name: {{ include "ingress-nginx.controller.fullname" $ }}-{{ $key }}
|
||||
namespace: {{ include "ingress-nginx.namespace" $ }}
|
||||
spec:
|
||||
serviceRef:
|
||||
name: {{ include "ingress-nginx.controller.fullname" $ }}
|
||||
port: {{ index $.Values.controller.service.targetPorts $key }}
|
||||
targetType: instance
|
||||
targetGroupARN: {{ $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -545,6 +545,12 @@ controller:
|
|||
# udp:
|
||||
# 53: 30053
|
||||
udp: {}
|
||||
# -- If want to use an existing AWS LoadBalancer, write the arn of the Target Group.
|
||||
awsTargetGroupBinding:
|
||||
enabled: false
|
||||
arnMapping:
|
||||
http: ""
|
||||
https: ""
|
||||
internal:
|
||||
# -- Enable the internal controller service or not. Remember to configure `controller.service.internal.annotations` when enabling this.
|
||||
enabled: false
|
||||
|
|
Loading…
Reference in a new issue