mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
1.2 KiB
1.2 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.5/config/manifests/metallb-native.yaml
kubectl apply -f infra/metallb/00-manifest.yml
Configure MetalLB
kubectl apply -f infra/metallb/01-configuration.yml
Traefik
https://doc.traefik.io/traefik/v2.8/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