How to install and use Kubernetes on Fedora?

Hi Fedora community,
I am trying to learn how to use Kubernetes on Fedora for automation.
Any help is much appreciated.

There’s a few way you can go about it.

Option 1: You can install the official K8s repo:

Install the tools following their documentation, or you can install the MiniKube package from them if you just wanna learn K8s. Here’s their way of adding the repo:

cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
exclude=kubelet kubeadm kubectl

and you can find this information all right here:

Option 2: OKD with Fedora Core OS

If you want a full scale K8s cluster, you can use OKD which is the community supported version of OpenShift. It uses Fedora CoreOS as the OS image that’s basically K8s ready. You can learn all about it from here:


Option 3: just sudo dnf install cri-o kubernetes-kubeadm kubernetes-node kubernetes-client cri-tools iproutetc, and follow the installation steps. Containerd is an alternative to cri-o. From the normal installation path, you’ll probably be one release behind the latest version. I did my cluster installations that way, using the Fedora Server edition, but I also run with scissors. I’d recommend Option 1 that @alys suggests, but for just learning the basics, the Minikube path is really the easy path and is used in many online tutorials. Have fun and keep learning.


Thank you both, for helping me learn.