Files
homelab-v/tofu/kubernetes/README.md
T
Vegard Hagen 737e047c8e refactor(tofu): extract variables into their own files
The .tfvars files are normally gitignored, but they serve as an example here. Just need to make sure I don't commit a secret...

Inpired by #236
2025-03-23 17:19:46 +01:00

544 B

Kubernetes Tofu

tofu output -raw kube_config
tofu output -raw talos_config

Proxmox

Environment variable

export TF_VAR_proxmox_api_token="<YOUR_API_TOKEN>"

Sealed-secrets

Generate certificate

openssl req -x509 -days 365 -nodes -newkey rsa:4096 -keyout sealed-secrets.key -out sealed-secrets.crt -subj "/CN=sealed-secret/O=sealed-secret"

Kubernetes

Output kubeconfig

tofu output -raw kube_config

Talos

Output talosconfig

tofu output -raw talos_config