tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Unable to deploy built docker image when using a virtual cluster via vcluster

Open brandoncollins7 opened this issue 2 years ago • 1 comments

I am experimenting with using vclusters and I almost have everything working except for one last piece. It seems tilt has no problem pushing most things to a virtual cluster (helm charts, namespaces etc...) however it seems to fail when trying to build and push my own docker image. I guess it somehow doesn't have access to where images get stored when kubectl is pointed at the virtual cluster?

Build Failed: docker push: pushing image "docker.io/osf/admin": denied: requested access to the resource is denied

Is there any possible workaround to this?

brandoncollins7 avatar Jan 20 '23 14:01 brandoncollins7

what are you running vcluster on? my understanding of vcluster is that it delegates to the underlying container runtime, so most of the existing docs on choosing a cluster will apply - https://docs.tilt.dev/choosing_clusters.html

i wonder if we could make tilt a bit smarter about detecting when you're running vcluster and setting this up for you

nicks avatar Jan 20 '23 17:01 nicks