https://github.com/tmsmr/hcloud-kiss-k8s
Pragmatic Kubernetes on Hetzner VPS
https://github.com/tmsmr/hcloud-kiss-k8s
fcos hetzner k3s k8s terraform
Last synced: 3 months ago
JSON representation
Pragmatic Kubernetes on Hetzner VPS
- Host: GitHub
- URL: https://github.com/tmsmr/hcloud-kiss-k8s
- Owner: tmsmr
- License: mit
- Created: 2025-07-29T09:40:10.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-29T15:17:12.000Z (3 months ago)
- Last Synced: 2025-07-29T16:00:47.232Z (3 months ago)
- Topics: fcos, hetzner, k3s, k8s, terraform
- Language: HCL
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hcloud-kiss-k8s
Pragmatic Kubernetes on Hetzner VPS*WiP*
## Quick start
- deploy with
```terraform
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
}
}
}provider "hcloud" {
token = "xxx"
}module "k8s" {
source = "git::https://github.com/tmsmr/hcloud-kiss-k8s.git?ref=main"
deployment_name = "my-k8s"
hcloud_ssh_key_name = "johndoe"
}resource "local_sensitive_file" "wg_conf" {
filename = "./my-k8s.conf"
content = module.k8s.wireguard_client_config
}
```
- wait... (5 min?)
- retrieve and adjust kubeconfig
```bash
sudo wg-quick up ./my-k8s.conf
scp core@10.20.1.1:/etc/rancher/k3s/k3s.yaml .
sed -i '' 's/server:.*$/server: https:\/\/10.20.1.1:6443/g' k3s.yaml
```
- interact
```
KUBECONFIG=./k3s.yaml kubectl get node
```