Closed neerolyte closed 3 years ago
kubectl config set-context
creates an empty context with no configuration. It seems microk8s store its kubeconfig file in a non-default path. To create a kubeconfig file from the microk8s environment, you can do microk8s.kubectl config view --raw > $HOME/.kube/config
(see https://github.com/ubuntu/microk8s#accessing-kubernetes)
Thanks you're right that does produce a better config file and lets me progress further.
I did get this working eventually, I'm going to try put together and submit a PR with notes to help the next person - having the original error explain more of what's gone wrong would still be helpful IMO, so I'm not closing this.
FWIW I agree that the message should be made clearer. I think (but am not sure) that this might actually be a docker/cli
change.
Hi! Thanks for your feedback. Unfortunately we're no longer maintaining this repository so I will close this issue.
I'm trying to get compose running with microk8s.
Originally I ran in to an error about
.kube/config
not being present:I was able to resolve that by asking
kubectl
to set a context name (this writes out a basic config file):but then I get stuck on a less obvious error:
It'd be great if this error could give more context because it's unclear where it's coming from and what config is missing.
I can see with
strace
that docker itself is attempting to read a token file that's not present in my set up:I'm not clear what that token is actually for or how I'd tell docker where to find it.
P.s I originally logged this at https://github.com/moby/moby/issues/38602 as SEO guides me there - it'd be great to have a prominent guide for where to find bugs for the various docker projects.