Martin Koníček


Installing Istio on MicroK8S

Showcase image

Installing Istio on MicroK8S using standard path following tutorial from with just small changes.

If you will follow default tutorial you will probably get following errors

Installation error

bash# istioctl install --set profile=demo -y
Error: check minimum supported Kubernetes version: error getting Kubernetes version: Get "http://localhost:8080/version?timeout=5s": dial tcp connect: connection refused

For resolving this issue you should export kubeconfig first

bash# microk8s config > ~/.kube/config
bash# export KUBECONFIG=~/.kube/config
bash# istioctl install --set profile=demo -y


Next difference is in ingress set-up.

bash# kubectl get svc istio-ingressgateway -n istio-system
NAME                   TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                                                                      AGE
istio-ingressgateway   LoadBalancer   <pending>     15021:31323/TCP,80:30732/TCP,443:30212/TCP,31400:32197/TCP,15443:30158/TCP   2m24s

You can see that port 80 is mounted to port 30732, now you just list interfaces

bash# ip addr l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group ...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group ...
    inet metric 100 brd scope global dynamic 

And eth0 interface is on

So after installing initial tutorial you will find out sample application on

  • MicroK8S failing with Kustomize
    MicroK8S failing with KustomizeWhen you get an error message error: failed to run '/snap/microk8s/5250/usr/bin/git fetch --depth=1 https://... main': fatal: couldn't find remote ref main this might be a solution
  • cs | en