Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

This repository is part of a live demo at KubeCon Europe 2021 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.

License

Notifications You must be signed in to change notification settings

hetznercloud/kubecon-europe-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KubeCon Europe 2021

This repository is part of a live demo at KubeCon Europe 2021 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.

The code in this repository creates chargeable resources (three servers and a load balancer) in your hcloud account. Please make sure to delete the resources afterwards to avoid unintended costs. If you attended KubeCon you received a coupon for some cloud credits which you can use to cover the costs to get started.

After the KubeCon this repository will not be updated or officially supported. If you think there is a bug with one of the integrations please feel free to open an issue in the corresponding GitHub repository or a customer ticket.

Deploy Your Own Kubernetes Cluster

1. Setup

  1. If you don't have an account yet, create one
  2. Login to your hcloud account
  3. Redeem your cloud credits if you received some at the KubeCon
  4. Create a new hcloud project
  5. Go to the project settings at Security > API Tokens and create a new token with Read & Write access
  6. Export the new token: export HCLOUD_TOKEN=<your token>
  7. Clone the repository
git clone https://github.com/hetznercloud/kubecon-europe-2021.git
cd kubecon-europe-2021

2. Terraform

Replace the SSH public key in terraform/hcloud.tf with your own public key.

cd terraform
terraform init
terraform apply

3. Ansible

  • Change the path to your SSH private key in the inventory.
  • The kubeconfig role stores your kubeconfig at ~/.kube/config by default. To change the path you can override the kubeconfig_local_path variable (or change the yaml file).
cd ../ansible
pip install -r requirements.txt
ansible-galaxy install -r requirements.yml
ansible-playbook kubernetes.yml

Interesting Links

About

This repository is part of a live demo at KubeCon Europe 2021 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.

Topics

Resources

License

Stars

Watchers

Forks