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

Update the version of the sandbox image to the one used by kubeadm #427

Open
afbjorklund opened this issue Jan 6, 2025 · 1 comment · May be fixed by #428
Open

Update the version of the sandbox image to the one used by kubeadm #427

afbjorklund opened this issue Jan 6, 2025 · 1 comment · May be fixed by #428

Comments

@afbjorklund
Copy link
Contributor

afbjorklund commented Jan 6, 2025

Currently the user has to override the systemd unit, with the later version of the pause image.

https://kubernetes.io/docs/setup/production-environment/container-runtimes/

It would be nice to have the latest one already in the default, in case the user misses this step...

detected that the sandbox image "registry.k8s.io/pause:3.9" of the container runtime is inconsistent with that used by kubeadm.It is recommended to use "registry.k8s.io/pause:3.10" as the CRI sandbox image.


kubeadm config images list
sudo kubeadm config images pull --cri-socket unix:///var/run/cri-dockerd.sock

You can run just the preflight: (this will also pull the kubernetes images)

sudo kubeadm init phase preflight --cri-socket unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=All

Note that giving the socket is mandatory, otherwise kubeadm will complain about containerd:

found multiple CRI endpoints on the host. Please define which one do you wish to use by setting the 'criSocket' field in the kubeadm configuration file: unix:///var/run/containerd/containerd.sock, unix:///var/run/cri-dockerd.sock

@afbjorklund afbjorklund linked a pull request Jan 6, 2025 that will close this issue
@afbjorklund
Copy link
Contributor Author

afbjorklund commented Jan 6, 2025

It is extra annoying with docker engine, since cri-dockerd doesn't have a proper configuration file:

So you will have to systemctl edit the cri-docker.service, and the flag from the k8s documentation:

/etc/systemd/system/cri-docker.service.d/10-pause.conf

[Service]
ExecStart=
ExecStart=/usr/bin/cri-dockerd --container-runtime-endpoint fd:// --pod-infra-container-image "registry.k8s.io/pause:3.10"

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

Successfully merging a pull request may close this issue.

1 participant