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

Enable provisioning of external L4 service LoadBalancer with IPv6 #65675

Closed
bradjones1 opened this issue Jul 1, 2018 · 14 comments
Closed

Enable provisioning of external L4 service LoadBalancer with IPv6 #65675

bradjones1 opened this issue Jul 1, 2018 · 14 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/network Categorizes an issue or PR as relevant to SIG Network. triage/unresolved Indicates an issue that can not or will not be resolved.

Comments

@bradjones1
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:

/kind feature
/sig gcp

What happened:

External load balancers created via a service record provision only an IPv4 address. According to the GCP documentation, load balancers may be allocated an IPv6 address, however it appears these instructions only apply to GCE configurations made manually through the console or CLI, not those created and managed by the Kubernetes engine.

What you expected to happen:

IPv6 addresses may be attached to the external load balancer.

How to reproduce it (as minimally and precisely as possible):

Create a service with spec.type: LoadBalancer. An ephemeral IPv4 address will be allocated (which can also be promoted to a static address.) There is no pathway to creating an IPv6 address.

Anything else we need to know?:

Related code seems to be at https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go

Environment:

  • Kubernetes version (use kubectl version):v1.10.2-gke.3
  • Cloud provider or hardware configuration: GKE
  • OS (e.g. from /etc/os-release): Google's Container-optimized
@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. sig/gcp labels Jul 1, 2018
@nicksardo
Copy link
Contributor

GCP supports IPv6 for only SSL/TCP Proxy LBs - not for the network LBs that are created by Kubernetes for services of type LoadBalancer. An alternative that works today is using ingress and providing an IPv6 address.

@bradjones1
Copy link
Author

@nicksardo Thanks, I'm new to GCP so the terminology is still settling in. So the load balancer that gets generated by the K8s API is sort of a fourth, non-UI-creatable load balancer type? It operates as a TCP LB but it's with a more limited feature set than the TCP LB I could create through the console?

Looks like you're a GCP engineer; any thoughts on whether this is roadmapped or not, or is IPv6 just not on the table for TCP?

@nicksardo
Copy link
Contributor

All LB types are capable of being manually created via GCP Console, API, and CLI. The distinction is that K8s creates the type without a proxy (connection termination) (https://cloud.google.com/load-balancing/docs/network/setting-up-network). The proxy type is created with different GCP API resources (https://cloud.google.com/load-balancing/docs/tcp/setting-up-tcp) and not supported by the K8s service controller. I wouldn't call the former a limited feature set; terminating the connection is a polarizing decision as you lose the source information unless you enable the proxy header protocol (see link) and the app can consume it.

I can't speak to a roadmap, sorry.

@bradjones1
Copy link
Author

@nicksardo Thanks and understood. So is there any configuration inside GCP that would get to the desired result of an IPv6 address in front of a K8s service with a network LB? I poked around a bit initially to see if I could, say, put a Proxy LB with the other LB behind it as a backend, but that seems 1) impossible and 2) too cute.

@mofirouz
Copy link

@nicksardo

GCP supports IPv6 for only SSL/TCP Proxy LBs - not for the network LBs that are created by Kubernetes for services of type LoadBalancer. An alternative that works today is using ingress and providing an IPv6 address.

How would one provide an IPv6 address to the ingress? Is it a manual step done via API/dashboard in GCP?

@mofirouz
Copy link

This issue is also relevant here: kubernetes/ingress-gce#87

@bradjones1
Copy link
Author

@mofirouz My understanding is that it is just not possible, at the moment.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 14, 2018
@bradjones1
Copy link
Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 17, 2018
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 15, 2019
@bradjones1
Copy link
Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 15, 2019
@thockin thockin added sig/network Categorizes an issue or PR as relevant to SIG Network. triage/unresolved Indicates an issue that can not or will not be resolved. labels Mar 7, 2019
@thockin
Copy link
Member

thockin commented May 9, 2019

There is not a generic way to do this. Some clouds support IPv6 and some do not. GCP does not support IPv6 for the NetworkLB product, which is what backs kube Services.

For clouds that do support IPv6, there needs to be a cloud-specific way to express what you want (e.g. an annotation) until dual-stack support is done.

Getting an IPv6 address for an Ingress should be possible on GCP, but that is not what this is about. I don't think there's an annotation for that one yet, but it's at least possible.

@thockin thockin closed this as completed May 9, 2019
@Arachnid
Copy link

Google supports IPv6 for L4 loadbalancers now. Can we reopen this?

Kubernetes lets me specify an IPv6 loadBalancerIP, but then fails to allocate it to my load balancer.

@tg90nor
Copy link

tg90nor commented Aug 26, 2019

@Arachnid thockins last comment is still valid. Kube services on GCP uses the Network Load Balancer, which does not support IPv6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/network Categorizes an issue or PR as relevant to SIG Network. triage/unresolved Indicates an issue that can not or will not be resolved.
Projects
None yet
Development

No branches or pull requests

8 participants