xetys / hetzner-kube

A CLI tool for provisioning kubernetes clusters on Hetzner Cloud
Apache License 2.0
745 stars 116 forks source link

Addons: How to differentiate between Kubernetes versions? #303

Open tholu opened 4 years ago

tholu commented 4 years ago

With Kubernetes 1.16 there were some incompatible API changes that break addons, see e.g. #262.

I checked the Addons Documentation, and the source code of the existing addons, but I have not found any check for the Kubernetes version there.

To fix those addons and to support Kubernetes 1.16 as well as previous versions simultaneously, such a check would be needed. How would this be possible?

What's the current plan for the addons, should they be maintained or is using helm directly the preferred way?

xetys commented 4 years ago

The hetzner-kube provided addons have the purpose to install these addons closer to the hetzner related cluster over the general setup. See hcloud-manager or custom rook tweaks etc.

So yes, there is a plan for supporting the necessary addons to make a smooth experience

tholu commented 4 years ago

@xetys That's great! Any idea how to design the Kubernetes version switch then?

xetys commented 4 years ago

To be honest, I don't have a clear idea at the moment. Another related topic is, that as of 1.15 the upgrade procedure from kubeadm got so straight forward, so it makes sense to introduce upgrade functionality and then we will have to deal with several versions anyways.