feat(terraform): Add initial Terrafrom setup for gateway
This patch finally upstreams the currently used terraform setup for the gateway machine at Hetzner. This should provide better insights into the infrastructure and help people to learn from the setup. It also helps to keep the automation level high and using terraform more actively to keep these servers running. The gateway server is the frontend reverse proxy for all web-originating traffic and provides a simple setup, that runs a L4 HAProxy to forward all traffic to the Kubernetes cluster, where it's terminated and handled. This allows to keep the cloud server stupid and not being able to compromise a connection (at least not more than any other middlebox). This keeps the trust away from the cloud provider.
Showing
- images/koolbox/Dockerfile 6 additions, 4 deletionsimages/koolbox/Dockerfile
- terraform/k8s01/.terraform.lock.hcl 122 additions, 0 deletionsterraform/k8s01/.terraform.lock.hcl
- terraform/k8s01/firewall.tf 88 additions, 0 deletionsterraform/k8s01/firewall.tf
- terraform/k8s01/main.tf 19 additions, 0 deletionsterraform/k8s01/main.tf
- terraform/k8s01/network.tf 11 additions, 0 deletionsterraform/k8s01/network.tf
- terraform/k8s01/output.tf 3 additions, 0 deletionsterraform/k8s01/output.tf
- terraform/k8s01/provider.tf 14 additions, 0 deletionsterraform/k8s01/provider.tf
- terraform/k8s01/ssh.tf 2 additions, 0 deletionsterraform/k8s01/ssh.tf
- terraform/k8s01/templates/cloud-init.tpl 79 additions, 0 deletionsterraform/k8s01/templates/cloud-init.tpl
- terraform/k8s01/variables.tf 33 additions, 0 deletionsterraform/k8s01/variables.tf
- terraform/k8s01/versions.tf 1 addition, 0 deletionsterraform/k8s01/versions.tf
- terraform/modules/hcloud_instance/main.tf 71 additions, 0 deletionsterraform/modules/hcloud_instance/main.tf
- terraform/modules/hcloud_instance/network.tf 5 additions, 0 deletionsterraform/modules/hcloud_instance/network.tf
- terraform/modules/hcloud_instance/output.tf 30 additions, 0 deletionsterraform/modules/hcloud_instance/output.tf
- terraform/modules/hcloud_instance/variables.tf 111 additions, 0 deletionsterraform/modules/hcloud_instance/variables.tf
- terraform/modules/hcloud_instance/versions.tf 1 addition, 0 deletionsterraform/modules/hcloud_instance/versions.tf
- terraform/modules/hcloud_instance/volumes.tf 19 additions, 0 deletionsterraform/modules/hcloud_instance/volumes.tf
- terraform/versions.tf 21 additions, 0 deletionsterraform/versions.tf
Loading
Please register or sign in to comment