Istio 1.6.7 install from binary failed by x509: certificate signed by unknown authority

Attempting to install istio 1.6.7 on Ubuntu 20.04. MicroK8s 1.18.6 already installed and the istio addon is NOT enabled (because it’s an old version 1.5.1).

Following the instructions on

istio-1.6.7$ export PATH=$PWD/bin:$PATH

istio-1.6.7$ istioctl install --set profile=demo
Error: failed to apply manifests: Get "": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "")

This has nothing to do with istio. It’s just mis-configuration of authentication for kubectl to access the microk8s cluster.

Solution: Where does microk8s store kubectl config file?