Everyone can contribute! Let's learn together in a weekly cafe ☕

We love to break things, make mistakes, debug, analyse, fix problems together. Live and unfiltered on Youtube.

Community members and thought leaders regularly join and share their projects and ideas.

"Everyone Can Contribute" is inspired by GitLab's mission.

15. Cafe: Kubernetes deployments to Hetzner Cloud, step 2: k3s with Ansible


Max Rosin kindly prepared a series of workshops to learn how to deploy Kubernetes in Hetzner Cloud. Hetzner generously sponsored cloud minutes for our sessions, thank you!

This session covers the second step, after having provisioned the server and agent VMs with Terraform and Ansible last week:

  • Install wireguard to use with Flannel and encrypt the network traffic
  • Install the k3s binary and deploy a systemd unit using Ansible Jinja templates
  • k3s agent setups requires an auth token on the master. Use slurp and async task handlers to ensure the token is created on the master first, and then agents can consume it in their setup task.

Next week, we will dive into using the Hetzner resources to manage the load balancer and storage volumes. Future ideas touch monitoring with Prometheus, CI/CD pipeline deployments and much more :)



Enjoy the session! 🦊

Date published: February 3, 2021

Tags: Gitlab, Hetzner, Cloud, Terraform, Ansible, Kubernetes