Skip to content

A learning-by-doing ansible repository to manage my personal kubernetes cluster on hetzner cloud.

License

Notifications You must be signed in to change notification settings

mblaettler/hetzner-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hetzner-kubernetes

A learning by doing ansible repository to manage my personal kubernetes cluster on hetzner cloud.

Usage

  1. Install hetzner.hcloud extension and the hcloud library
ansible-galaxy collection install hetzner.hcloud
sudo pip3 install hcloud
  1. Create a new porject on hetzner cloud and generate an API key
  2. Set the HCLOUD_TOKEN environment variable to your API key

Settings/Config

  • kubernetes-config.yaml: Configure the vm location and type, kubernetes version etc. of your cluster.

Playbooks

  • provision-master.yaml: Create a master node and initialize a new cluster. In case the cluster is already set up, this script can be used to reset the cluster configuration.
  • add-worker.yaml: Create a new worker and attachs it to the existing master.
  • drain-worker.yaml: Remove a worker.

About

A learning-by-doing ansible repository to manage my personal kubernetes cluster on hetzner cloud.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published