Open NiklasRosenstein opened 6 months ago
Would love to see this feature, is there anything where I could help out? :heart:
Sorry for the delay guys. I finally have a week off work this coming week so I am planning a new release that will include this too.
This is now scheduled for 2.0.1. v2.0.0 is going to be released probably next weekend, and 2.0.1 should follow not long after that.
Unable to bootstrap a node pool with autoscaling that includes taints and labels
worker_node_pools:
- name: medium
instance_type: cpx31
instance_count: 2
location: fsn1
- name: medium-autoscaled
instance_type: cpx31
instance_count: 2
location: fsn1
labels:
- key: purpose
value: ci
taints:
- key: ci
value: value:NoSchedule
autoscaling:
enabled: true
min_instances: 0
max_instances: 3
hetzner-k3s --version 2.0.3
[Node labels]
Adding labels to medium-autoscaled pool workers...
error: resource(s) were provided, but no name was specified
[Node labels] : error: resource(s) were provided, but no name was specified
Hi @pashtet04, this change didn't make it into a release yet. I was planning it for 2.0.1 but had to make a couple of releases to fix some more important issues. I will see if I can do it this weekend but I can't promise.
It looks like the autoscaler implementation for Hetzner cloud now supports taints/labels via
HCLOUD_CLUSTER_CONFIG
which replacesHCLOUD_CLOUD_INIT
andHCLOUD_IMAGE
!See https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/hetzner/README.md
Seems this was added here (https://github.com/kubernetes/autoscaler/commit/e1408eddda4a87a6bd8f0e1f379081409492536e) and is available in 1.29.0