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

Warning from kubeadm preflight about sandbox image #314

Open
afbjorklund opened this issue Dec 5, 2023 · 0 comments
Open

Warning from kubeadm preflight about sandbox image #314

afbjorklund opened this issue Dec 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@afbjorklund
Copy link
Contributor

afbjorklund commented Dec 5, 2023

[init] Using Kubernetes version: v1.28.4
[preflight] Running pre-flight checks
	[WARNING SystemVerification]: missing optional cgroups: hugetlb
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
W1123 08:54:42.549433     139 checks.go:835] detected that the sandbox image "registry.k8s.io/pause:3.7" of the container runtime is inconsistent with that used by kubeadm. It is recommended that using "registry.k8s.io/pause:3.9" as the CRI sandbox image.

https://kubernetes.io/docs/setup/production-environment/container-runtimes/#override-pause-image-containerd

This issue is not seen in kind, since they do not run the preflight:

--skip-phases=preflight


Newer versions of kubernetes (1.29) will query CRI for the sandbox.

So then it will automatically get the old version containerd is using...

https://github.com/kubernetes-sigs/kind/blob/v0.20.0/images/base/files/etc/containerd/config.toml#L37

  # use fixed sandbox image
  sandbox_image = "registry.k8s.io/pause:3.7"

It probably should make sure that it is "pinned", for garbage collection.

@AkihiroSuda AkihiroSuda added the enhancement New feature or request label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants