Atlantic.
Net Blog
How to Install Kubernetes with Minikube on
CentOS 8
December 4, 2020 by Hitesh Jethva (https://www.atlantic.net/author/hitesh-jethva/)
(179posts) under VPS Hosting (https://www.atlantic.net/category/vps-hosting/)
0 Comments (https://www.atlantic.net/vps-hosting/how-to-install-kubernetes-with-
minikube-on-centos-8/#disqus_thread)
(https://facebook.com/sharer/sharer.php?
display=popup&u=https://www.atlantic.net/vps-hosting/how-to-install-kubernetes-
with-minikube-on-centos-8/)
(https://twitter.com/intent/tweet/?text=How to Install Kubernetes with Minikube on
CentOS 8&url=https://www.atlantic.net/vps-hosting/how-to-install-kubernetes-with-
minikube-on-centos-8/)
(mailto:?subject=How to Install Kubernetes with Minikube on CentOS
8&body=https://www.atlantic.net/vps-hosting/how-to-install-kubernetes-with-
minikube-on-centos-8/)
(https://www.linkedin.com/sharing/share-offsite/?url=https://www.atlantic.net/vps-
hosting/how-to-install-kubernetes-with-minikube-on-centos-8/)
(https://reddit.com/submit/?url=https://www.atlantic.net/vps-hosting/how-to-install-
kubernetes-with-minikube-on-centos-8/&resubmit=true&title=How to Install
Kubernetes with Minikube on CentOS 8)
(https://news.ycombinator.com/submitlink?u=https://www.atlantic.net/vps-
hosting/how-to-install-kubernetes-with-minikube-on-centos-8/&t=How to Install
Kubernetes with Minikube on CentOS 8)
Minikube is an open-source software written in Go and used for setting up a Kubernetes
cluster on your local machine. Developers or administrators mainly use Minikube for
testing purposes. This cross-platform software can be run on macOS, Linux, and
Windows.
In this tutorial, we will learn how to install Kubernetes with Minikube on CentOS 8.
Prerequisites
A fresh CentOS 8 VPS (/vps-hosting/) with at least 2GB RAM on the Atlantic.Net
Cloud Platform
A root password configured on your server
Step 1: Create Atlantic.Net Cloud Server
First, log in to your Atlantic.Net Cloud Server (https://cloud.atlantic.net/?
page=userlogin). Create a new server (/cloud-hosting/how-to-create-new-atlantic-net-
cloud-server/), choosing CentOS 8 as the operating system with at least 2GB RAM.
Connect to your Cloud Server via SSH and log in using the credentials highlighted at the
top of the page.
Once you are logged in to your CentOS 8 server, run the following command to update
your base system with the latest available packages.
dnf update -y
Step 2: Install Docker
By default, the Docker package is not available in the CentOS 8 default repo, so you will
need to add the Docker repo in your system.
You can add it with the following command:
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo (https://d
After adding the Docker repo, install Docker by running the following command:
dnf install docker-ce --nobest -y
Once the installation is completed, start the Docker service and enable it to start at
system reboot:
systemctl start docker
systemctl enable docker
You can also verify the installed version of Docker using the following command:
docker -v
You should see the following output:
Docker version 19.03.12, build 48a66213fe
Step 3: Install Kubectl
Before starting, you will need to install the required dependencies in your system. You
can install them with the following command:
dnf install curl conntrack -y
Next, you will need to install Kubectl in your system. By default, kubectl is not included in
CentOS 8, so you will need to install it using the curl command:
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl (https://storage.google
https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl (h
Next, give the execution permission to the downloaded binary and move it to the
/usr/local/bin directory:
chmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
You can now verify the Kubectl version with the following command:
kubectl version --client
You should see the following output:
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5",
GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"clean",
BuildDate:"2020-06-26T03:47:41Z", GoVersion:"go1.13.9", Compiler:"gc",
Platform:"linux/amd64"}
Step 4: Install Minikube
First, download the Minikube binary package using the curl command:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 (
Next, give the execution permission to the downloaded binary with the following
command:
chmod +x minikube
Next, install Minikube by running the following command:
install minikube /usr/local/bin/
You can now start Minikube using the following command:
minikube start --driver=none
Once Minikube is started successfully, you should get the following output:
The above command will download and start the Docker containers for setting up a
single node Kubernetes cluster.
You can also verify the status of the Kubernetes cluster with the following command:
minikube status
You should see the following output:
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
You can also view the cluster information using the following command:
kubectl cluster-info
You should see the following output:
Kubernetes master is running at https://your-server-ip:8443 (https://your-server-ip:8443)
KubeDNS is running at https://your-server-ip:8443/api/v1/namespaces/kube-system/services/kube- (
dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
You can also view the cluster nodes using the following command:
kubectl get nodes
You should get the following output:
NAME STATUS ROLES AGE VERSION
minicube Ready master 2m v1.18.3
Step 5: Verify Kubernetes Cluster
Now, deploy a k8s using echoserver image to test the Kubernetes cluster.
kubectl create deployment test-minikube --image=k8s.gcr.io/echoserver:1.10
You should see the following output:
deployment.apps/test-minikube (http://deployment.apps/test-minikube) created
Now, expose your deployment on port 8080 using the following command:
kubectl expose deployment test-minikube --type=NodePort --port=8080
You should see the following output:
service/test-minikube exposed
Next, get the information about your exposed deployment using the following command:
kubectl get pod
You should see the following output:
NAME READY STATUS RESTARTS AGE
test-minikube-f4df69575-7m2pl 1/1 Running 0 33s
Next, get the URL of your deployment using the following command:
minikube service test-minikube --url
You should see the following output:
http://your-server-ip:31186 (http://your-server-ip:31186)
Now, open your web browser and access the above URL http://your-server-ip:31186
(http://your-server-ip:31186). You should see the following screen:
Step 6 : Enable Kubernetes Dashboard
Kubernetes comes with a web dashboard that can be used to manage your cluster
through a web browser. By default, the dashboard is disabled in Minikube.
You can list all Minikube addons using the following command:
minikube addons list
You should see the following output:
|-----------------------------|----------|--------------|
| ADDON NAME | PROFILE | STATUS |
|-----------------------------|----------|--------------|
| ambassador | minikube | disabled |
| dashboard | minikube | disabled |
| default-storageclass | minikube | enabled |
| efk | minikube | disabled |
| freshpod | minikube | disabled |
| gvisor | minikube | disabled |
| helm-tiller | minikube | disabled |
| ingress | minikube | disabled |
| ingress-dns | minikube | disabled |
| istio | minikube | disabled |
| istio-provisioner | minikube | disabled |
| logviewer | minikube | disabled |
| metallb | minikube | disabled |
| metrics-server | minikube | disabled |
| nvidia-driver-installer | minikube | disabled |
| nvidia-gpu-device-plugin | minikube | disabled |
| olm | minikube | disabled |
| registry | minikube | disabled |
| registry-aliases | minikube | disabled |
| registry-creds | minikube | disabled |
| storage-provisioner | minikube | enabled |
| storage-provisioner-gluster | minikube | disabled |
|-----------------------------|----------|--------------|
Now, enable the Minikube dashboard and get the URL of the dashboard with the
following command:
minikube dashboard --url
This will enable the Minikube dashboard as shown below:
* Enabling dashboard ...
* Verifying dashboard health ...
* Launching proxy ...
* Verifying proxy health ...
http://127.0.0.1:42939/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes- (http://
dashboard:/proxy/
Now, you can access the Minikube dashboard locally using the above URL.
Conclusion
Congratulations! You have successfully installed Kubernetes cluster with Minikube on
CentOS 8. You can now start experimenting with Kubernetes locally. Get started with
Kubernetes and Minikube on VPS Hosting (/vps-hosting/) from Atlantic.Net today!
< Older post (https://www.atlantic.net/dedicated-server-hosting/manage-docker-
containers-with-rancher/)
Newer post > (https://www.atlantic.net/vps-hosting/how-to-install-matrix-
synapse-on-ubuntu-20-04/)
Get A Free To Use Cloud VPS (/cloud-hosting/)
Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year
Looking for a Hosting Solution?
We Provide Cloud, Dedicated, & Colocation.
Seven Global Data Center Locations.
Flexible Private, Public, & Hybrid Hosting.
24x7x365 Security, Support, & Monitoring.
Contact Us Now! (/cloud-platform/#GetStarted)
(/press-releases/atlantic-net-attains-ssae-18-certification-compliance-
aicpa-standard-principles/) (/press-releases/atlantic-net-
offers-hipaa-audited-hosting-solution-to-give-medical-
companies-and-patients-protection/) (/press-
releases/atlantic-net-offers-hipaa-audited-
hosting-solution-to-give-medical-companies-and-
patients-protection/)
Recent Posts
Should Your VPS-Hosted Website Use WordPress, Joomla, or Drupal?
(https://www.atlantic.net/vps-hosting/should-your-vps-hosted-website-use-
wordpress-joomla-or-drupal/)
How to Install Relic Server Monitoring on CentOS 8 (https://www.atlantic.net/?
p=33279)
How to Install Plausible on Ubuntu 20.04 (https://www.atlantic.net/?p=33270)
How to Install TensorFlow on Ubuntu 20.04 (https://www.atlantic.net/?p=33258)
How to Update Docker Container with Zero Downtime (https://www.atlantic.net/?
p=33252)
Get started with 12 months of free cloud VPS hosting
Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year
Get a free To Use Cloud VPS (/vps-hosting/)
ALSO ON ATLANTIC.NET
10 months ago • 1 comment 2 years ago • 1 comment 2 yea
How to Install What Linux How
Yarn on CentOS Distro Should AD
8 You Use? … Tha
Comments Community 🔒 Privacy Policy
1 Login
Recommend t Tweet f Share Sort by Best
CLOUD PLATFORM (/CLOUD-PLATFORM/)
Virtual Cloud Servers (https://www.atlantic.net/vps-hosting/)
VPS Pricing & Plans (https://www.atlantic.net/vps-hosting/pricing/)
Secure Block Storage (https://www.atlantic.net/cloud-platform/block-storage/)
VoIP Cloud Servers (https://www.atlantic.net/voip-cloud-servers/)
Managed Private Cloud (https://www.atlantic.net/managed-private-cloud/)
Backup & Replication (https://www.atlantic.net/cloud-platform/backups/)
Cloud Containers (https://www.atlantic.net/cloud-containers/)
DEDICATED HOSTING (/DEDICATED-SERVER-HOSTING/)
Dedicated Server Hosting (https://www.atlantic.net/dedicated-server-hosting/)
Managed Private Cloud (https://www.atlantic.net/managed-private-cloud/)
Virtual Private Cloud (https://www.atlantic.net/virtual-private-cloud/)
Colocation Hosting (https://www.atlantic.net/orlando-colocation-hosting-data-center/)
Disaster Recovery (https://www.atlantic.net/disaster-recovery/)
Managed Services (https://www.atlantic.net/managed-services/)
COMPLIANCE HOSTING (/COMPLIANCE-HOSTING/)
HIPAA Compliant Hosting (https://www.atlantic.net/hipaa-compliant-hosting/)
HIPAA WordPress (https://www.atlantic.net/hipaa-compliant-wordpress-hosting/)
Pharma & BioTech Solutions (https://www.atlantic.net/life-sciences-pharma-biotech/)
PCI Compliant Hosting (https://www.atlantic.net/pci-hosting/)
ABOUT US (/ABOUT-US/)
Why Atlantic.Net (https://www.atlantic.net/hosting-services-provider/)
Our Certifications (https://www.atlantic.net/hosting-services-provider/certifications-and-partnerships/)
Our Data Centers (https://www.atlantic.net/hipaa-data-centers/)
Media Press Room (https://www.atlantic.net/press-room/)
Partner Program (https://www.atlantic.net/partners/)
Career Opportunities (/careers/)
Contact Us (https://www.atlantic.net/about-us/corporate-contact/)
SUPPORT (/SUPPORT/)
Always Available Support (https://www.atlantic.net/hosting-services-provider/support-team/)
100% Uptime SLA (https://www.atlantic.net/hosting-services-provider/100-uptime-sla/)
Network Status (https://status.atlantic.net/)
Speed Test (https://www.atlantic.net/speed-test/)
Service Policies (https://www.atlantic.net/service-policies/)
Privacy Policy (https://www.atlantic.net/service-policies/privacy-policy/)
Cookie Settings
NEW YORK, NY (/HIPAA-DATA-CENTERS/NEW-YORK-HOSTING/)
100 Delawanna Ave, Suite 1
Clifton, NJ 07014
United States
SAN FRANCISCO, CA (/HIPAA-DATA-CENTERS/SAN-FRANCISCO-CALIFORNIA-HOSTING/)
2820 Northwestern Pkwy,
Santa Clara, CA 95051
United States
DALLAS, TX (/HIPAA-DATA-CENTERS/DALLAS-TEXAS-HOSTING/)
2323 Bryan Street,
Dallas, Texas 75201
United States
ASHBURN, VA (/HIPAA-DATA-CENTERS/ASHBURN-VIRGINIA-HOSTING/)
1807 Michael Faraday Ct,
Reston, VA 20190
United States
ORLANDO, FL (/ORLANDO-COLOCATION-HOSTING-DATA-CENTER/)
440 W Kennedy Blvd, Suite 3
Orlando, FL 32810
United States
TORONTO, CANADA (/HIPAA-DATA-CENTERS/TORONTO-CANADA-HOSTING/)
20 Pullman Ct, Scarborough,
Ontario M1X 1E4
Canada
LONDON, UK (/HIPAA-DATA-CENTERS/LONDON-UK-HOSTING/)
14 Liverpool Road, Slough,
Berkshire SL1 4QZ
United Kingdom
SALES: 888-618-3282
INTL: +1-321-206-3734
(http
s://w
ww.f
aceb
ook.
com/
Atla
ntic
Net)
RESOURCES
How to Make Storage HIPAA Compliant (/hipaa-compliant-hosting/top-10-considerations-for-hipaa-compliant-file-
storage/)
How to Make WordPress HIPAA Compliant (/hipaa-compliant-wordpress-hosting/#Make-WordPress-HIPAA-Compliant)
How to Make File Sharing HIPAA Compliant (/hipaa-compliant-hosting/hipaa-compliant-file-sharing/)
How to Make a Database HIPAA Compliant (/hipaa-compliant-hosting/top-10-considerations-for-a-hipaa-compliant-
database/)
How to Make a Website HIPAA Compliant (/hipaa-compliant-hosting/how-to-make-website-hipaa-compliant/)
How to Become HIPAA Compliant (/hipaa-compliant-hosting/how-to-become-hipaa-compliant/)
What is HIPAA Compliant Hosting? (/hipaa-compliant-hosting/#what-is-hipaa-compliant-hosting)
What is HIPAA Cloud Hosting? (/hipaa-compliant-hosting/what-is-hipaa-cloud/)
What is HIPAA Compliance? (/hipaa-compliant-hosting/hipaa-compliance-guide-what-is-hipaa/)
What is Healthcare Hosting? (/hipaa-compliant-hosting/what-is-healthcare-hosting-hipaa/)
What is the HIPAA Security Rule? (/hipaa-compliant-hosting/what-is-the-hipaa-security-rule-safeguard-checklist)
What is a HIPAA BAA? (/what-is-baa-hipaa-business-associate-agreement/)
What is VPS Hosting? (/vps-hosting/#WhatisVPSHosting)
What is Cloud Hosting? (/vps-hosting/what-is-cloud-hosting/)
What is Colocation Hosting? (/orlando-colocation-hosting-data-center/what-is-colocation-hosting/)
What is VMWare? (/dedicated-server-hosting/what-is-vmware/)
What is Server Virtualization? (/vps-hosting/what-is-server-virtualization/)
What is an IIS Server? (/vps-hosting/what-is-an-iis-server/)
What is an Apache Server? (/vps-hosting/what-is-an-apache-server/)
What is MSSQL? (/vps-hosting/what-is-mssql/)
What is Database Hosting? (/dedicated-server-hosting/what-is-database-hosting/)
What is Block Storage? (/dedicated-server-hosting/what-is-block-storage/)
© 2021 Atlantic.Net, All Rights Reserved.