Trouble using ksync with microk8s
johnbendi opened this issue · comments
John Chijioke commented
Hello, I'm using microk8s.
When I try to run ksync init
I get the following error message FATA[0000] Unable to get config for context (). Does 'kubectl --context= cluster-info' work?
When I run kubectl --context= cluster-info
I get
Kubernetes control plane is running at https://127.0.0.1:16443
CoreDNS is running at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'
My kubectl version
Client Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.9-34+90ae618987e17a", GitCommit:"90ae618987e17a41856095693df31a22ea81c9f9", GitTreeState:"clean", BuildDate:"2021-08-01T06:03:53Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.9-34+90ae618987e17a", GitCommit:"90ae618987e17a41856095693df31a22ea81c9f9", GitTreeState:"clean", BuildDate:"2021-08-01T06:04:56Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"linux/amd64"}
Originally posted by @johnbendi in #272 (comment)
John Chijioke commented
Doing microk8s config > ~/.kube/config
solved this issue.