The host-access addon enables access to services running on the host machine via a fixed IP.
This becomes useful when your machine changes IPs as you hop through different networks.
You can install this addon with:
microk8s enable host-access
A new local network interface named lo:microk8s
is created with a default IP address of 10.0.1.1
.
Alternatively, you can provide a different IP address when enabling the addon:
microk8s enable host-access:ip=<desired-ip>