Comments (5)
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.
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.
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.
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.
@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)
- docs: explain and recommend Robot Webservice Users HOT 1
- Taint uninitialized not getting removed HOT 1
- LoadBalancer / Service Enhancements
- Multiple LoadBalancer services not correct in LB services list HOT 2
- Controller does not properly add node metadata HOT 6
- Pod crashes when setting HCLOUD_NETWORK and network: false HOT 10
- docs(load-balancer): explain how to use managed & uploaded certificates HOT 1
- LB: load-balancer.hetzner.cloud/node-selector annotation not working HOT 3
- Node Addresses won't get updated when using Wireguard for Cluster Creation HOT 9
- Calico and HCC HOT 21
- Invalid characters in labele instance-type HOT 1
- CCM failed to get node address from cloud provider that matches IPv6 HOT 4
- Automatically label robot nodes HOT 2
- invalid_input when deleting loadbalancer manually.
- Inconsistency in the naming for load balancer annotation. HOT 2
- CCM with Hetzner network attempts to create IPv6 routes HOT 5
- fix: Too many requests to `GET /v1/servers/{id}`
- Hetzner Cloud Control manager not connecting with Hetzner HOT 5
- CCM installation with microk8s HOT 1
- Controller support for private networks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcloud-cloud-controller-manager.