Skip to main content

Micro Kubernetes Cluster Hetzner

·96 words·1 min
O11y | Cloud
Author
O11y | Cloud
Site Reliability Engineer
Table of Contents

The most simple way to run small and cheap Kubernetes cluster in the Cloud. You take the smallest Hetzner server with public IP address and install k3s, for easy management you can use k9s and you are ready to start.

Install
#

sudo curl -sfL https://get.k3s.io | sh -

This will install and start Kubernetes in your host.

Configure
#

cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
chown <user>:<group>  ~/.kube/config

Then you access your k8s from the host using kubectl:

kubectl get pods

Kubeconfig is locked on localhost. If you want to open access from outside, you need different approach.