Giter Club home page Giter Club logo

Comments (5)

tobiaskohlbau avatar tobiaskohlbau commented on July 17, 2024 1

I want to add some value to this:

As of kubernetes 1.16 there exists a feature gate ServiceNodeExclusion which should make the exlusion of special nodes possible:

ServiceNodeExclusion: Enable the exclusion of nodes from load balancers created by a cloud provider. A node is eligible for exclusion if labelled with “alpha.service-controller.kubernetes.io/exclude-balancer” key (when LegacyNodeRoleBehavior is on) or node.kubernetes.io/exclude-from-external-load-balancers

from hcloud-cloud-controller-manager.

tobiaskohlbau avatar tobiaskohlbau commented on July 17, 2024 1

Yes I managed to get it working.

Please notice that hcloud-cloud-controller-manager is responsible for managing these feature (to be specific the underlying library k8s.io/cloud-provider).
Therefore the right place to apply the feature gate is within the deployment of hcloud-cloud-controller-manager itself instead of the apiserver or other components.

For e.g. my deployment contains:

containers:
        - image: hetznercloud/hcloud-cloud-controller-manager:v1.6.1
          name: hcloud-cloud-controller-manager
          command:
            - "/bin/hcloud-cloud-controller-manager"
            - "--cloud-provider=hcloud"
            - "--leader-elect=false"
            - "--allow-untagged-cloud"
            - "--allocate-node-cidrs=true"
            - "--cluster-cidr=10.129.0.0/17"
            - "--feature-gates=ServiceNodeExclusion=true"

from hcloud-cloud-controller-manager.

saltenhub avatar saltenhub commented on July 17, 2024

That would be super helpful. We have a cluster of dedicated and cloud nodes and clearly the LoadBalancer does not support the dedicated nodes.

from hcloud-cloud-controller-manager.

LKaemmerling avatar LKaemmerling commented on July 17, 2024

K8s is in favor of handling what nodes should be attached. We just get a list of nodes from k8s: https://github.com/hetznercloud/hcloud-cloud-controller-manager/blob/master/hcloud/load_balancers.go#L72

So, unfortunately, this is out of our scope.

from hcloud-cloud-controller-manager.

lucatk avatar lucatk commented on July 17, 2024

@tobiaskohlbau have you managed to get this to work with HCloud load balancers? I have enabled the feature gate and tried both labels, none yielding any change in which nodes are applied as targets...

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.