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

After setup-container.sh and setup-kubetools.sh, kubeadm init fails on Ubuntu 22.04 #4

Open
drq883 opened this issue Feb 4, 2023 · 1 comment

Comments

@drq883
Copy link

drq883 commented Feb 4, 2023

I deployed 3 hosts to create a k8s cluster. Using the O'Reilly Getting Started with Kubernetes, 3rd Edition.

Each host has Ubuntu 22.04.1 LTS installed.

The error shown is:

root@drqk8sctl:~/kubernetes# kubeadm init
[init] Using Kubernetes version: v1.26.1
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR CRI]: container runtime is not running: output: time="2023-02-03T12:33:14-05:00" level=fatal msg="validate service connection: CRI v1 runtime API is not implemented for endpoint \"unix:///var/run/containerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

This setup is pretty easy to redeploy to provide any logs, config files needed.

Thanks.

@drq883
Copy link
Author

drq883 commented Feb 4, 2023

Referencing this page: https://stackoverflow.com/questions/75131916/failed-to-validate-kubelet-flags-the-container-runtime-endpoint-address-was-not

The suggestion of running this fixed it (bad version of containerd in ubuntu 22.04.1):

wget https://github.com/containerd/containerd/releases/download/v1.6.12/containerd-1.6.12-linux-amd64.tar.gz
tar xvf containerd-1.6.12-linux-amd64.tar.gz
systemctl stop containerd
cd bin
cp * /usr/bin/
systemctl start containerd

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

1 participant