Cloud Infrastructure
Infrastructure patterns for Kubernetes clusters. Implementation via hcloud CLI. All scripts are idempotent.
Core Components
Component Purpose hcloud Command
Compute VM instances for nodes hcloud server
Network Private connectivity hcloud network
Load Balancer Traffic distribution hcloud load-balancer
Firewall Network security hcloud firewall
DNS Name resolution hcloud zone
Storage Block storage hcloud volume
Server Type Selection
If a server type is unavailable in the preferred location, try other European locations:
Check availability across EU locations
for loc in fsn1 nbg1 hel1; do echo "=== $loc ===" && hcloud server-type list --selector location=$loc done
EU locations: fsn1 (Falkenstein), nbg1 (Nuremberg), hel1 (Helsinki)
Quick Start
Install hcloud CLI
curl -sL https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz | tar xz sudo mv hcloud /usr/local/bin/
Set token
export HCLOUD_TOKEN="your-token"
Verify
hcloud server list
hcloud Reference
Resource Reference
Servers hcloud-server.md
Networks hcloud-network.md
Load Balancers hcloud-load-balancer.md
Firewalls hcloud-firewall.md
Volumes hcloud-volume.md
Floating IPs hcloud-floating-ip.md
Primary IPs hcloud-primary-ip.md
SSH Keys hcloud-ssh-key.md
Images hcloud-image.md
Certificates hcloud-certificate.md
Placement Groups hcloud-placement-group.md
DNS Zones hcloud-zone.md
Storage Boxes hcloud-storage-box.md
Datacenters hcloud-datacenter.md
Context hcloud-context.md
Provisioning
See references/provisioning.md for step-by-step infrastructure setup.
References
-
provisioning.md - Step-by-step setup
-
terraform.md - Infrastructure as Code
-
naming.md - Naming conventions
-
cost-optimization.md - Cost strategies
-
scripts.md - Automation scripts
-
cert-manager-hetzner.md - TLS certificates