-
Notifications
You must be signed in to change notification settings - Fork 715
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 imagePullPolicy when pulling kubeadm images #524
Comments
This is not the case. The default Can you post the relevant manifest yamls and the kubelet log when it doesn't work for you? |
@luxas : Thanks for your response . Correct . The acceptable image Once I added --apiserver-advertise-address=10.205.78.6 it worked fine
Your Kubernetes master has initialized successfully! Closing the issue. |
re-opening as we hit the same problem recently. cc @bart0sh |
@neolit123 is this the same issue? Do we want |
re-using this issue so that we don't open a new one. a bit messy, but renamed it with a better title at least. we need to support different policies. |
The |
@neolit123 is this still a problem? As far as I understand the problem, image pull policy should not add much to what described above.. |
It doesn't work when e.g. it's trying to pull an unnecessary pause image
and failing 🙃
…On Sun, Apr 26, 2020, 10:24 Fabrizio Pandini ***@***.***> wrote:
@neolit123 <https://github.com/neolit123> is this still a problem?
AFAIK kubeadm works in air gapped environment if the image exists locally;
users also have options to influence image name (via image repository/image
tag fields)
As far as I understand the problem, image pull policy should not add much
to what described above..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#524 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADKY7PWRRNAAS5VCVM2TRORU4JANCNFSM4ECQSPSQ>
.
|
it was recently requested by @ncdc for CAPI use too. and with a policy of "Never" it will never pull and "Always" would always pull, which will actually run faster than "IfNotPresent" if the image is present locally. |
@neolit123 I think you're referring to the regression in kubeadm that always pulled instead of doing IfNotPresent? I don't think CAPI needs anything now that the regression has been fixed. |
ok, so i had to refresh my memory about that bug: we did fix a regression. |
+1 @neolit123 xref kubernetes/kubernetes#90326 Elaborating a little ...
This is not sufficient, you cannot currently configure the pause image to match your CRI. In an airgapped environment this leads to: kubernetes/kubernetes#90326 #2020 would be one way to fix that, but alternatively in an airgapped environment I just don't want kubeadm trying to pull images at all, full stop. If the cluster fails to come up due to missing images that should be relatively easy to diagnose. Pulling was never going to help. I know that I'm not going to pull in an airgapped env so I'd prefer to be able to tell kubeadm exactly that and skip this entirely. I might not want to skip all preflight checks on a serious cluster though. (btw though, there's another major potential issue in airgapped env currently that the already existing images can be evicted :/ I'm going to try to revive kubernetes/enhancements#1007) |
@neolit123 shall add a flag (maybe and I am happy to help with this. |
@xlgao-zju thanks for your help! This is on hold now. No new command line flags should be added. The change needs to be part of a new kubeadm config version if done. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
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 fejta. |
/remove-lifecycle rotten
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
@fabriziopandini and me agreed that this seems like an good change for 1.22 / v1beta3. having a new field under NodeRegistrationOptions.imagePullPolicy that has values of Always, IfNotPresent, Never (same as k8s) makes sense: |
/assign |
/cc @wangyysde |
Is this a request for help?
Bug / Help and possibly implement a fix for the bug
similar closed issue : #34
Versions
kubeadm version (use
kubeadm version
):kubeadm version = kubeadm_1.8.2-00
Environment:
kubectl version
):Kernel (e.g.
uname -a
):Linux ip-10-205-78-6 4.4.0-1039-aws kubeadm join usage summary is missing master args #48-Ubuntu SMP Wed Oct 11 15:15:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Others:
What happened?
kubeadm init
doesn't support arg =imagePullPolicy=never or local
. This impose a problem when using kubeadm with no internet access since, it defaults trying to pull images from gcr.kubeadm errors:
command :
kubeadm init --kubernetes-version v1.8.2 --pod-network-cidr=10.244.0.0/16
What i have done . Downloaded all google_containers related to kubernetes 1.8.2 and then scp to the host and used docker to load the containers . kubeadm default policy imagePullPolicy=always . Therefore it was failing
To work around it . I have added imagePullPolicy=never to manifests and used kubelet to start the the pods .
master was up after that
etcd responding
API
What you expected to happen?
expected kueadm to work if container-images are present locally.
How to reproduce it (as minimally and precisely as possible)?
reproduce by following the steps above.
Anything else we need to know?
not sure if it would it make sense to add hook kubeadm to talk to a private registry instead !
The text was updated successfully, but these errors were encountered: