How to create a Kubernetes cluster with Rancher on Hetzner

The 3 stars of our story

About Kubernetes, Rancher and Hetzner

Why Rancher?

0. Prerequisites

1. Prepare your Hetzner Account and get API token

2. Install Rancher

Hetzner’s create private network wizard
It’s time to create a new cluster!

3. Install Hetzner Cloud driver

Oh damn it! Where is Hetzner?

4. Cluster node template

List of enabled Hetzner API tokens
Hetzner Generate API token dialog

5. Create the cluster

Hetzner driver ready to create our cluster!
Add cluster in Hetzner screen
Enter the Hetzner token dialog
Node template dialog
  • Ubuntu 18.04 with CX21 (2 vCPUS / 4 GB RAM) for master node (etcd, control panel)
  • Ubuntu 18.04 with CX31 (2 vCPUS / 8 GB RAM) for worker node (workload pods)
  • 1 Master node named “master” with CX21 template based.
  • 1 Worker node named “worker” with CX31 template based.
Master & Comand Panel

6. Configuring your cluster

One place to control all your cluster
Kubectl works perfectly

Volume class driver

Native Load Balancer

(Soft) Load Balancer with MetalLB

  1. We install it using manifests

Conclusion

Related posts

Some claps, pls? Thanks you! :)

--

--

--

Beyond-Full-stack developer #go #python #kubernetes #terraform #devops

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My Goals for the HNG Internship 8

Building a website from scratch in 4 days?…

Top 5 Programming Languages for 2022 🔥

Synthetix onboards Gauntlet for derivatives risk management

Launch a Apache Web Server on AWS EC2 using Ansible Roles

LESSON 3 : TESTING, DEBUGGING, AND USING SUPPORT LIBRAR

Skeleton Screen in Flutter

How To Spot Fake Vs Real Yeezy Sesame (350 V2 Sesame Legit Check)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
JM Robles

JM Robles

Beyond-Full-stack developer #go #python #kubernetes #terraform #devops

More from Medium

Kubernetes — Preventing HorizontalPodAutoscalers from Running Wild

Getting started with OPA/Gatekeeper

Untangling Reclaim Policies for Persistent Volume in Kubernetes

Deploy Ceph, integrate with Kubernetes