Files
blog/content/posts/11-build-your-kubernetes-cluster-part-2/index.md
2023-08-17 16:18:29 +02:00

1.1 KiB

title, date, description, tags, draft
title date description tags draft
Setup a HA Kubernetes cluster Part II - Cluster initialization with Terraform 2023-06-09 Follow this opinionated guide as starter-kit for your own Kubernetes platform...
kubernetes
terraform
hetzner
k3s
gitops
true

{{< lead >}} Be free from AWS/Azure/GCP by building a production grade On-Premise Kubernetes cluster on cheap VPS provider, fully GitOps managed, and with complete CI/CD tools 🎉 {{< /lead >}}

Requirements

K3s cluster building with Terraform

Begin with 1 master and 3 workers node with LB...

K3s configuration and usage

  • Local SSH + Kube apiserver access to the cluster
  • Usage of salt
  • K3s S3 backup

Automatic upgrades

  • OS reboot
  • K3s upgrade

HTTP access

  • Traefik + cert-manager
  • DNS configuration
  • Dashboard traefik access
  • Middlewares IP and auth

1st check

We now have a working cluster, let's install [a load balanced ingress controller for external access through SSL]({{< ref "/posts/12-build-your-kubernetes-cluster-part-3" >}}) and proper HA storage.