Setup Kubernetes

Latest response

I am running Red Hat Enterprise Linux 8.4 on x86-64

Setup Kubernetes cluster using cri-o and kubeadm
Previously I am running kubernetes cluster with kubeadm setup on RHEL 7

Want to achieve same thing on RHEL8, but as per the docs it says docker was deprecated on RHEL8, and want to migrate from docker to any of its alternatives. Thorugh some research i found that CRI-O can be used as container runtime for kubernetes on RHEL8.

As per the installation docs of CRI-O , we need to enable some extra RHEL repos and install container tools, https://github.com/cri-o/cri-o/blob/master/install.md#rhel-8 . But still CRI-O was not installed.

Any suggestion on how to proceed on this ?

Responses

Hello Keyur,

Yes, that is correct. Follow the instructions from this document: CRI-O Installation Instructions

As per this document and you should be able to install cri-o on RHEL8 which I tried and it worked perfect. Make sure to run "export OS=CentOS_8" first and then install cri-o package.

[root@rhel83 yum.repos.d]# dnf info cri-o
Updating Subscription Management repositories.
Last metadata expiration check: 0:02:34 ago on Wed 30 Jun 2021 01:56:24 AM EDT.
Installed Packages
Name         : cri-o
Epoch        : 2
Version      : 1.19.1
Release      : 12.1.el8
Architecture : x86_64
Size         : 150 M
Source       : cri-o-1.19.1-12.1.el8.src.rpm
Repository   : @System
From repo    : devel_kubic_libcontainers_stable_cri-o_1.19
Summary      : Kubernetes Container Runtime Interface for OCI-based containers
URL          : https://github.com/cri-o/cri-o
License      : ASL 2.0
Description  : Kubernetes Container Runtime Interface for OCI-based containers

Available Packages
Name         : cri-o
Epoch        : 2
Version      : 1.19.1
Release      : 12.1.el8
Architecture : aarch64
Size         : 42 M
Source       : cri-o-1.19.1-12.1.el8.src.rpm
Repository   : devel_kubic_libcontainers_stable_cri-o_1.19
Summary      : Kubernetes Container Runtime Interface for OCI-based containers
URL          : https://github.com/cri-o/cri-o
License      : ASL 2.0
Description  : Kubernetes Container Runtime Interface for OCI-based containers

Name         : cri-o
Epoch        : 2
Version      : 1.19.1
Release      : 12.1.el8
Architecture : src
Size         : 13 M
Source       : None
Repository   : devel_kubic_libcontainers_stable_cri-o_1.19
Summary      : Kubernetes Container Runtime Interface for OCI-based containers
URL          : https://github.com/cri-o/cri-o
License      : ASL 2.0
Description  : Kubernetes Container Runtime Interface for OCI-based containers

All the best!

Thanks Sadashiva

"export OS=CentOS_8" does the trick

Yeah.. thanks for letting us know that it worked.