Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure microk8s to use ~/.kube/config

I've added stuff to my ~/.kube/config which doesn't appear when I do:

microk8s.kubectl config view

I'd like to use Microk8s with the default config file location.

Is this possible?

like image 461
LondonRob Avatar asked Mar 16 '20 14:03

LondonRob


1 Answers

It is possible in the latest snap version (1.14.1) by editing /var/snap/microk8s/current/args/kubectl and changing --kubeconfig to point to your own preferred config file, or in my case:

--kubeconfig=${KUBECONFIG}

like image 168
Arghya Sadhu Avatar answered Sep 18 '22 15:09

Arghya Sadhu