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

minikube start caches incorrect images #2827

Closed
mlgibbons opened this issue May 19, 2018 · 5 comments
Closed

minikube start caches incorrect images #2827

mlgibbons opened this issue May 19, 2018 · 5 comments

Comments

@mlgibbons
Copy link
Contributor

mlgibbons commented May 19, 2018

Environment: Windows 10 & Windows 7
Minikube version: 0.26.1
OS :Windows
VM Driver: virtual-box
ISO version: 0.26.0

mk only dynamically generates the image names for the four static pods (scheduler, api-server, controller-manager and proxy) correctly appending the k8s version to them.

Unfortunately, the versions for the other pods are hard-coded and are incorrect for v1.8.x, v1.9.x and v1.10.x. where the versions required differ and are not keyed on k8s version.

The result is that "kubeadm init" has to download images even if the pre-caching had been successful. This causes problems for disconnected operation or when operating in a restricted environment.

See these links for background info - https://github.com/kubernetes/minikube/blob/master/pkg/minikube/constants/constants.go and https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file

@ivan-section-io
Copy link
Contributor

There's already an issue #2679 (+PR #2822) for the "latest" version - it's fairly trivial.

It's slightly more involved to cater to recognizing dependencies for differing versions, but shouldn't be a problem.

@mlgibbons Would you be happy if we steer this issue towards a "cached images are incorrect for alternate k8s versions"?

From a fix perspective: I guess one of the first steps may to be discover the specific versions required, and also if there's way to source/determine that without having to manually discover & hard code everything each time.

@mlgibbons
Copy link
Contributor Author

mlgibbons commented May 22, 2018 via email

@ivan-section-io
Copy link
Contributor

I think it'd certainly help the implementer to have those resources spelt out.
Whilst the required images should be explicitly stated in kubeadm's source (e.g. https://github.com/kubernetes/kubernetes/blob/release-1.10/cluster/addons/dns/kube-dns.yaml.base), the project has changed structure, names & components enough across versions that I don't think we can't simply compare that file path across versions.
The most reliable and expedient option may be to simply start each version (including dashboard/add-ons) and record the docker images listing against each version number.
Given that the current approach is a "static" list - a more comprehensive static list seems like an improvement to me.

@mlgibbons
Copy link
Contributor Author

Changes made in #2845 to handle 1.8.x, 1.9.x and 1.10.x and default to existing generic list.

@mlgibbons
Copy link
Contributor Author

Closed #2845 and opened #2849

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

No branches or pull requests

2 participants