2

I rewrote in Crystal my tool to quickly create Kubernetes clusters in Hetzner

 1 year ago
source link: https://news.ycombinator.com/item?id=34185209
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I rewrote in Crystal my tool to quickly create Kubernetes clusters in Hetzner I rewrote in Crystal my tool to quickly create Kubernetes clusters in Hetzner 84 points by SkyLinx 5 hours ago | hide | past | favorite | 23 comments

Hi all, I just released a new version of https://github.com/vitobotta/hetzner-k3s that is a complete rewrite in Crystal that is faster, better overall and allows me to offer simple standalone executables. The previous version was written in Ruby, so users had to either set up a Ruby environment, or use a Docker image instead. This is no longer necessary.

This is my first project in Crystal and I love it already! It's syntax is lovely - similar to Ruby's - and it's FAST!

I would appreciate any feedback anyone might have - if you are a Kubernetes user as well as a Hetzner customer, please give it a try and let me know what you think, if you encounter any issues etc.

During my tests I was able to create a cluster with highly available control plane (3 masters behind a load balancer) and 5 nodes in multiple regions in just *3 minutes*. This is the total time to create the resources (servers, firewall, load balancer, private network), deploy Kubernetes to all the nodes, install some stuff required to provision load balancers and persistent volumes out of the box, and install an upgrade controller to easily upgrade the Kubernetes version (I use k3s as Kubernetes distro). I don't think there is a faster way to create a production Kubernetes cluster!

Do you have Kubernetes clusters in Hetzner already? If yes, which tool did you use to create them? Would be interested to know more about alternatives people are using.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK