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 https://istio.io/latest/docs/setup/getting-started/#install

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

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

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?