Error page kubernetes
Detail problem
root@master:/home/barkah# kubeadm init \
> --cri-socket /run/containerd/containerd.sock \
> --pod-network-cidr=192.168.0.0/16
W0110 07:35:17.463086 12614 initconfiguration.go:120] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
I0110 07:35:18.243766 12614 version.go:256] remote version is much newer: v1.29.0; falling back to: stable-1.28
[init] Using Kubernetes version: v1.28.5
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: time="2024-01-10T07:35:18Z" level=fatal msg="validate service connection: CRI v1 runtime API is not implemented for endpoint \"unix:///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
Fix problem
root@master:/home/barkah# rm /etc/containerd/config.toml
root@master:/home/barkah# systemctl restart containerd
root@master:/home/barkah# kubeadm init
I0110 07:36:38.348918 12801 version.go:256] remote version is much newer: v1.29.0; falling back to: stable-1.28
[init] Using Kubernetes version: v1.28.5
Referensi
https://k21academy.com/docker-kubernetes/container-runtime-is-not-running/