Skip to content

K3s

Setup project

Setup K3s cluster with Ansible: https://ansible.build/roles/k3s/

Setup Kubeconfig with alias rpi.

Switch to rpi cluster.

cd gitops
./task switch-kubeconfig rpi/.kube/config-admin.yaml

Setup cert manager

Install cert manager.

task install-cert-manager

Install cluster issuer.

task install-cluster-issuer gitops/k3s.raspberrypi.build.yaml

Create Hugo release

Create a namespace for the application.

kubectl create namespace <namespace>
select-kubectl-namespace

Install the Hugo chart.

task install-chart taskfile-build