Troubleshoot MicroK8s
Common issues
After starting
microk8s
with themicrok8s start
command,microk8s status
outputs thatmicrok8s
is not started.Ensure there is a default gateway configured for the machine:
ip route | grep default
If this is not the case, please add it:
ip route add default via $(hostname -I | cut -d" " -f1)
The containers are is the Running state but the web interface responds with 502 errors.
Verify the firewall configuration. In particular, with Red Hat based distributions, the NAT source rule must be enabled:
firewall-cmd --add-masquerade --permanent firewall-cmd --reload
sudo su - cyberwatch cd cbw-on-premise ./cyberwatch.sh restart