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

How to Change PagerDuty Without Breaking Your Rota

Exploring Event Time and Processing Time in Spark Structured Streaming

Utopian Tree

What is Amazon Aurora and How does it be Work?

Automating Inside Sales Part 1 - Find any email address

Things I Wish I Knew Before Starting a Coding Bootcamp

Scratching my own itch: how I built a job board for myself

Microsoft Azure Kubernetes Service (AKS)

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

Gitlab CI runner on Kubernetes cluster

Problem DataBase PostgreSQL Hight Availability Postgres HA Issues

Kubernetes Probes: Startup, Liveness, Readiness

Vault using Kubernetes auth