8000 Creating GCE external load balancer fails · Issue #106 · elotl/kip · GitHub
[go: up one dir, main page]

Skip to content

Creating GCE external load balancer fails #106

Open

Description

@ldx

The GCE cloud provider in k8s does not like the fact that there's no cloud instance called virtual-kubelet:

default 3s Normal EnsuringLoadBalancer service/nginx Ensuring load balancer
default 3s Warning CreatingLoadBalancerFailed service/nginx Error creating load balancer (will retry): failed to ensure load balancer for service default/nginx: instance not found

Whether we use host network mode or not does not matter though. It's hard-coded in the GCE cloud plugin to list all nodes and bail if any of them is not a GCE VM instance: https://github.com/kubernetes/legacy-cloud-providers/blob/master/gce/gce_loadbalancer_external.go#L59-L62

Activity

  1. ldx commented on May 31, 2020

    @ldx
    ContributorAuthor

    Adding the alpha.service-controller.kubernetes.io/exclude-balancer or node.kubernetes.io/exclude-from-external-load-balancers label to the virtual-kubelet node excludes it from LBs. However, this needs the ServiceNodeExclusion feature gate, which is still alpha in Kubernetes: https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/

    Creating an alpha cluster in GKE will enable the feature gate, however, alpha clusters are not supported for production workloads: https://cloud.google.com/kubernetes-engine/docs/concepts/alpha-clusters

  2. ldx commented on Jun 1, 2020

    @ldx
    ContributorAuthor

    ServiceNodeExclusion will graduate to beta and will be on by default in 1.19: kubernetes/kubernetes@2369ef0

  3. ldx commented on Jun 1, 2020

    @ldx
    ContributorAuthor

    Adding the alpha.service-controller.kubernetes.io/exclude-balancer label will make gce-ingress work (not with container-native load balancing, though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCEbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0