Install the k8s cluster if not alreadly installed
1 | microk8s enable dns storage helm3 |
Add the helm Repo
1 | microk8s helm repo add alekc-charts https://charts.alekc.dev/ |
Install the helm chart
1 | microk8s helm install home-assistant alekc-charts/home-assistant |
Check the status of the installed application.
1 | microk8s status |
Service yaml file
We need to expose the service to the outside world.
Thankfully microk8s has a built in loadbalancer called metallb
1 | nano home-assistant-service.yaml |
Replace port_number with the real port number
1 | apiVersion: v1 |
Apply the service
1 | microk8s kubectl apply -f ./home-assistant-service.yaml |
Confirm the service is active
1 | microk8s kubectl describe services home-assistant-service |
Firewall Rules
This assumes you are using ufw.
ufw is bascally a wrapper for IPTABLES. If you have ever used IPTABLES before you understand why ufw exists.
Replace port_number with the real port number
1 | sudo ufw default allow routed |