Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: enable to switch nlb zone affinity #7422

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ kube_aws_ingress_controller_deregistration_delay_timeout: "10s"
# This opens skipper-ingress ports 9998 and 9999 on all worker nodes
kube_aws_ingress_controller_nlb_enabled: "true"
kube_aws_ingress_controller_nlb_cross_zone: "true"
kube_aws_ingress_controller_nlb_zone_affinity: "any_availability_zone"
kube_aws_ingress_controller_cert_polling_interval: "2m"
# sets the default LB type: "network" or "application" are valid choices (overwritten by nlb_switch)
kube_aws_ingress_default_lb_type: "application"
Expand Down
3 changes: 2 additions & 1 deletion cluster/manifests/ingress-controller/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {{ $version := "v0.15.13" }}
# {{ $version := "v0.15.15" }}

apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -42,6 +42,7 @@ spec:
# {{ if eq .Cluster.ConfigItems.kube_aws_ingress_controller_nlb_cross_zone "true" }}
- --nlb-cross-zone
# {{ end }}
- --nlb-zone-affinity={{ .Cluster.ConfigItems.kube_aws_ingress_controller_nlb_zone_affinity }}
- --cluster-local-domain=cluster.local
- --deny-internal-domains
- --additional-stack-tags=InfrastructureComponent=true
Expand Down