mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-09-03 01:59:29 +00:00
1.1 KiB
1.1 KiB
Kubernetes
Disable swap
swapoff -a
Start Kubernetes
sudo kubeadm init
Set up kubectl
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config && sudo chown $(id -u):$(id -g) $HOME/.kube/config
Remove taint for single node use
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
Cilium
Install Cilium as a CNI
cilium install
Load Balancer
Install MetalLB for LoadBalancing
https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml
kubectl apply -k infra/metallb
Traefik
https://doc.traefik.io/traefik/v2.9/user-guides/crd-acme/
Run Terraform-script
This will create a cert-storage StorageClass and a traefik-cert-pv PersistentVolume for use by Traefik before
installing Traefik in the kube-system namespace using the official Traefik Helm chart which binds to the
traefik-cert-pv PersistentVolume for persistent storage of certificates using the traefik PersistentVolumeClaim.
terraform init
terraform plan
terraform apply