Files for my home lab
HEALTH ? 99 / Healthy
Files for my home lab
// readme
This repo contains my infra-as-code sources.
My infrastructure is built using Terraform, Kubernetes and CI/CD is done using Woodpecker CI.
Read more by visiting my website: https://viktorbarzin.me
Full architecture documentation is available in docs/ โ covering networking, storage, security, monitoring, secrets, CI/CD, databases, and more.
Adding a new namespace-owner to the cluster requires three steps โ no code changes needed.
In the Authentik admin UI, add the user to:
kubernetes-namespace-owners group (grants OIDC group claim for K8s RBAC)Headscale Users group (if they need VPN access)Add a JSON entry to secret/platform โ k8s_users key in Vault:
"username": {
"role": "namespace-owner",
"email": "user@example.com",
"namespaces": ["username"],
"domains": ["myapp"],
"quota": {
"cpu_requests": "2",
"memory_requests": "4Gi",
"memory_limits": "8Gi",
"pods": "20"
}
}
username keyโฆ