0

-1

I am taking a Coursera class for CKA Prep and as part of that we are provisioning an instance of a node on Amazon EC2, installing the container runtime (which is containerd in this case) and now I am at the step where I need to install kubeadmn and kubectl. When I run this command:

sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes

I get this:

Error: Package: kubeadm-1.28.1-150500.1.1.x86_64 (kubernetes)
           Requires: cri-tools >= 1.28.0
           Available: cri-tools-1.25.0-1.amzn2.0.1.x86_64 (amzn2-core)
               cri-tools = 1.25.0-1.amzn2.0.1
           Available: cri-tools-1.26.1-1.amzn2.0.1.x86_64 (amzn2-core)
               cri-tools = 1.26.1-1.amzn2.0.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

So . . . I tried going to this site (https://github.com/kubernetes-sigs/cri-tools) and downloading the most recent crictl and critest but when I run the same command (the one above) I get the same error.

I also tried running the above by adding the --skip-broken modifier at the end, and that allows me to run without error... BUT it doesn't actually install kubeadm or kubectl either. So it is not very helpful. Also I did try running the rpm command. That did not seem to do anything.

Any help here? I saw a discussion on a kubernetes message board about how they ought not have kubeadmn dependent on cri-tools, but that doesn't help me with my current situation. Any help/suggestion?

Rasputin
  • 1
  • 1

0 Answers0