Giter Club home page Giter Club logo

Comments (7)

LKaemmerling avatar LKaemmerling commented on September 18, 2024 1

You need to recreate the whole cluster with --cloud-provider=external. See Step 1 in https://github.com/hetznercloud/hcloud-cloud-controller-manager

from hcloud-cloud-controller-manager.

LKaemmerling avatar LKaemmerling commented on September 18, 2024 1

The provider ID will be set from the cloud controller :)

from hcloud-cloud-controller-manager.

vitobotta avatar vitobotta commented on September 18, 2024

The problem was that I updated the kubelet config after creating the cluster. I created a new test cluster with the --cloud-provider=external setting from the beginning and everything worked fine.

For those who have a similar issue with an existing cluster with Rancher, this is what I did:

  1. updated the kubelet config
  2. installed the cloud controller
  3. created a new node pool, making sure the controller adds labels/annotations as expected (meaning that it's working)
  4. drained and removed the old node pool
  5. created service of type LoadBalancer.

The load balancer was correctly provisioned and I was able to use the ingress resources with Nginx just fine.

Thanks for the new release and for the load balancers!

from hcloud-cloud-controller-manager.

himanshusharma-git avatar himanshusharma-git commented on September 18, 2024

I am using RKE on hetzner and now i am stuck with the same issue , load balancer is creating but cnt get the IP address .

Events:
Type Reason Age From Message


Normal EnsuringLoadBalancer 25s (x5 over 102s) service-controller Ensuring load balancer
Warning SyncLoadBalancerFailed 25s (x5 over 101s) service-controller Error syncing load balancer: failed to ensure load balancer: hcloud/loadBalancers.EnsureLoadBalancer: hcops/LoadBalancerOps.ReconcileHCLBTargets: hcops/providerIDToServerID: missing prefix hcloud://:

from hcloud-cloud-controller-manager.

himanshusharma-git avatar himanshusharma-git commented on September 18, 2024

yeah i did but i also have a question now below :
spec:
externalID: master
podCIDR: 10.244.0.0/24
providerID: hcloud://123456 # <-- Server ID

it is asking for provideID and i am using multi master so do i can entry any master ip or am i still missing something ?

from hcloud-cloud-controller-manager.

ceyhunn avatar ceyhunn commented on September 18, 2024

Hi @vitobotta ,
I updated kubelet config of existed cluster in rancher like this:

kubelet:
      extra_env:
        - KUBELET_EXTRA_ARGS=--cloud-provider=external

Cluster and worker nodes updated, but error doesn't disappear. What I missed?

from hcloud-cloud-controller-manager.

ceyhunn avatar ceyhunn commented on September 18, 2024

@vitobotta , I notice that --cloud-provider=external has not been set in kubelet command:
/opt/rke-tools/entrypoint.sh kubelet --client-ca-file=/etc/kubernetes/ssl/kube-ca.pem --cloud-provider= --resolv-conf=/etc/resolv.conf
How do I set kubelet config properly in rancher ui?

from hcloud-cloud-controller-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.