LondonRob
LondonRob

Reputation: 78683

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?

Upvotes: 6

Views: 3714

Answers (1)

Arghya Sadhu
Arghya Sadhu

Reputation: 44559

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}

Upvotes: 3

Related Questions