Setup k8s cluster on hetzner cloud
This guide is based on vitobotta-guide. Please view their guide first.
- A verified Hetzner account
- hetzner-api-token
- hetzner-k3s in
Installation
part - kubectl
- Replace
hetzner token
with yourreal token
inconfig file
- Replace
k3s-version
with yourversion
that you desire
hetzner-k3s releases
- Check for other configuration base on
default-config.yaml
. Other this link default-config-file inCreate a cluster
part
Replace config file
with your real config file
hetzner-k3s create <config file>
After successfully created cluster. kubeconfig
file will be downloaded in your current directory
export KUBECONFIG=./kubeconfig
kubectl get nodes
Replace config file
with your real config file
hetzner-k3s delete <config file>