-
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
minikube start caches incorrect images #2827
Comments
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. |
Hi. Thanks for pointing out those links. Short term I agree that the updating of the versions is the expedient thing. Longer term, if possible, dynamic determination of the versions would be the correct solution. I would suggest short term changing the code to explicit static lists for specific versions including the current one (1.8, 1.9, 1.10.0 etc) as documented or discovered and then raising an enhancement issue to switch to making these dynamic longer term. I'm happy to do both if you'd like. Happy also to have the thread title steered in that direction. Cheers.
…On 22 May 2018 01:16:07 BST, ivan-section-io ***@***.***> wrote:
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.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#2827 (comment)
|
I think it'd certainly help the implementer to have those resources spelt out. |
Changes made in #2845 to handle 1.8.x, 1.9.x and 1.10.x and default to existing generic list. |
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
The text was updated successfully, but these errors were encountered: