Install Kubernetes Using Minikube In CentOS Linux


Kubernetes can be set up and set up in a range of methods, consisting of on desktop computers, physical servers, virtual devices, and as a cloud service. We will discover how to set up a single node Kubernetes cluster utilizing Minikube in CentOS Linux.

For the function of this guide, we will set up Minikube on CentOS 7 natively working on top of the virtual maker layer. Before setting up Kubernetes, you require to have a standard understanding of Kubernetes and its architecture and containers. Please describe our previous short article connected listed below to learn about the ideas.

Heads Up: This guide has actually been formally checked on CentOS. However, the setup actions are very same for Fedora, RHEL, and its clones such as AlmaLinux and Rocky Linux. If you’re on AlmaLinux and/or Rocky Linux, simply change yum with dnf in the commands provided throughout this guide.

What is Minikube?

The Kubernetes neighborhood has actually formally launched Minikube, a single-node Kubernetes circulation. It is a Open Source software application that enables you to develop a single-node Kubernetes cluster on your house workstation.

Minicube produces a virtual computer system and runs a Kubernetes cluster on it, enabling you to check in a Kubernetes environment on your regional maker. It’s fantastic for anybody who wishes to set up Kubernetes however just has a minimal quantity of system resources.

The primary element to keep in mind about Minikube is that it does not have a different Kubernetes master and Kubernetes employee node architecture.

All Kubernetes parts are compacted as an all-in-one option here. One system acts as both a master and an employee node.

What is the function of Minikube?

Minikube is mainly utilized to get hands-on experience with Kubernetes. Minikube is a simple method to attempt things out and test apps since substantial clusters aren’t constantly readily available.

Even those who are currently acquainted with Kubernetes will discover Minikube to be an outstanding knowing environment, as it enables a lot experimentation.

Prerequisites to set up Minikube

  • Minimum 2 CPUs.
  • Minimum 2GB of Physical Memory (RAM).
  • 20GB of Disk Space.
  • Internet connection to download bundles.
  • Install Docker engine – Container management system.
  • Install Conntrack.

Steps to set up Kubernetes in CentOS

Installing Kubernetes on CentOS includes the following actions.

Heads Up: All commands provided listed below must be run as root or sudo user.

Step 1 – Install Docker

First, we will include Docker repository in our system.

To do so, develop a file called docker.repo under /etc/yum.repos.d/ directory site:

# vi /etc/yum.repos.d/docker.repo

Add the following lines in it:


Press ESC and type :wq to conserve the file and close it.

Verify the set up and allowed repositories utilizing listed below command:

# yum repolist
List the installed and enabled repositories
List the set up and allowed repositories

Docker repository is included. Now, rRun Install Docker neighborhood edition (ce):

# yum -y set up docker-ce

Start and allow the Docker:

# systemctl start docker
# systemctl allow docker

Verify the Docker status:

# systemctl status docker
Verify Docker status
Verify Docker status

Step 2 – Install Conntrack

Conntrack belongs to the Netlifier structure. It’s needed for Kubernetes advanced networking to run well, as nodes should keep an eye on connections in between countless pods and services.

To set up Conntrack on CentOS, run:

# yum -y set up conntrack

Step 3 – Install Kubernetes Client (Kubectl)

Kubectl is the Command Line tool to deal with Kubernetes. You can download kubectl utilizing listed below command:

# curl -LO`curl -s`/bin/linux/amd64/kubectl

Assign executable authorization to keubectl:

# chmod +x kubectl

Move kubectl bundle to your $COURSE (E.g. /usr/local/bin)

# mv kubectl /usr/local/bin/

Verify the setup by examining kubeclt variation:

# kubectl variation --customer -o json

Here, the “-o json” flag will provide you the output in JSON format.

Sample output:

  "clientVersion": {
    "major": "1",
    "minor": "22",
    "gitVersion": "v1.22.4",
    "gitCommit": "b695d79d4f967c403a96986f1750a35eb75e75f1",
    "gitTreeState": "clean",
    "buildDate": "2021-11-17T15:48:33Z",
    "goVersion": "go1.16.10",
    "compiler": "gc",
    "platform": "linux/amd64"

Step 4 – Install Minikube

Download the minicube bundle utilizing command:

# wget

Give executable authorization to minicube bundle:

# chmod +x minikube-linux-amd64

Finally, move the Minikube bundle to /usr/local/bin:

# mv minikube-linux-amd64 /usr/local/bin/minikube

Minikube setting is done, and you can confirm the setup by examining the variation:

# minikube variation

Sample output:

minikube variation: v1.24.0
devote: 76b94fb3c4e8ac5062daf70d60cf03ddcc0a741b

Start the Minikube utilizing command:

# minikube start
Start Minikube service
Start Minikube service

Check the status of Minikube:

# minikube status

Sample output:

type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

You can get the nodes status and functions utilizing kubectl command:

# kubectl get nodes

Sample output:

NAME        STATUS   FUNCTIONS                  AGE   VARIATION
ostechnix   Ready    control-plane,master   26h   v1.22.3

Step 5 – Access the Kubernetes UI control panel

To gain access to Kubernetes control panel through a web internet browser, run:

# minikube control panel --url

This will produce an URL and show it in the basic output as displayed in the listed below output.

* Verifying control panel health ...
* Launching proxy ...
* Verifying proxy health ...
Access Kubernetes dashboard
Access Kubernetes control panel

Copy the URL and paste it in the web browser. Here is how Kubernetes web control panel appears like.

Kubernetes dashboard
Kubernetes control panel

When you gain access to Dashboard on an empty cluster, you’ll see the welcome page. This page consists of links to the Dashboard trip along with a deploy your very first containerized application.


We have actually gone through the setup actions of Kubernetes with Minikube. This can be utilized for finding out and evaluating function in our regional system or VM. We will cover other setup approaches and Kubernetes operation in the next posts.