-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feature: docker-env, registry, and default behavior #575
Comments
Is the default pull policy configurable? As an easy workaround for now, you can tag the built image with something other than latest, e.g. |
tldr: Indeed that is k8s default behavior, and currently as I see it in k8s not configurable. You built an image without a version, so
If the Workarounds:
[1] https://github.com/kubernetes/kubernetes/blob/dea4b0226d859a1b86a81163c86ec61cffc1b952/pkg/util/parsers/parsers.go#L51 |
Users would still have to name their image something that could be pushed to the registry addon, right? localhost:5000/my image:foo would work, but foo wouldn't. I wonder if could do this with a custom admission controller... |
No you don't need the registry if you're building against the minikube docker engine. |
Yeah sorry, that was in reply to the proxy idea @philips suggested. |
I think the goal of this is to make this developer workflow work in a "production way" instead of the sort of by accident way it does today. Kubernetes sort of assumes that there is a registry, rightfully, we just need to map the user experience to this. Aside: I need to get a proposal up but I would like to start writing a |
Issues go stale after 30d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST
Many developers use
docker build
and having it with minikube makes for a nice little dev system. However,docker build -t foo .
,kubectl run foo --image=foo
doesn't work. Why?Because the default ImagePullPolicy is not "IfNotPresent".
So, I think we should provide a workaround. I propose that we create a tiny Docker Engine proxy that looks for build and tag verbs and when they are made pushes it into the registry addon.
Advantages:
Thoughts?
The text was updated successfully, but these errors were encountered: