Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support microk8s #1021

Closed
bkcsfi opened this issue Jan 16, 2019 · 3 comments
Closed

Support microk8s #1021

bkcsfi opened this issue Jan 16, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@bkcsfi
Copy link

bkcsfi commented Jan 16, 2019

Will tilt work on microk8s? I'm on a spotty internet connection, haven't been able to git clone the example tilt app to try tilt via KUBECONFIG env var.

I did try this, which didn't work likely because the context is not recognized...

$ tilt demo
tilt demo mode only supports Docker For Mac or Minikube
check your current cluster with:

kubectl config get-contexts

$ microk8s.kubectl config current-context
microk8s

I had setup KUBECONFIG env this way:

$ microk8s.kubectl config view --raw > ~/.kube/config
$ set -x KUBECONFIG ~/.kube/config   # fish shell
@nicks
Copy link
Member

nicks commented Jan 16, 2019

Short answer: yes! Tilt will work with microk8s

Longer answer: There's two separable questions with slightly different answers: "will Tilt work with microk8s?" and "will tilt demo work with microk8s?"

You can tilt up against any cluster! It doesn't matter if the cluster is local or remote. MicroK8s will work fine. But to run tilt up against microk8s, you need read/write access to the container image registry that you're building images for, so that microk8s can pull the images.

But most of the tilt demos and tutorials use our container registry. We don't give everyone on the internet write access to that (for obvious reasons).

So when you run tilt demo, we recommend you use Docker For Mac and Minikube. These clusters let you talk directly to the in-cluster docker server, so you don't need to upload/download things from the registry:

AFAIK it's possible to do this with MicroK8s. We just haven't added support for it yet:
https://github.com/ubuntu/microk8s/blob/master/docs/registry.md
but it should be easy for us to add. Stay tuned!

@jazzdan jazzdan added the enhancement New feature or request label Jan 16, 2019
nicks added a commit that referenced this issue Jan 16, 2019
nicks added a commit that referenced this issue Jan 16, 2019
nicks added a commit that referenced this issue Jan 17, 2019
@bkcsfi
Copy link
Author

bkcsfi commented Jan 17, 2019

thanks so much for your quick response, I am looking forward to this upcoming release.

@bkcsfi
Copy link
Author

bkcsfi commented Jan 17, 2019

confirming version v0.5.1 "tilt demo" works on microk8s ... thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants