Install Single Master Kubernetes  

Kubernetes is an Open Source Orchestration tool that helps in Automate deploying, Scaling & managing Container Applications. we will install Single Master Kubernetes which is minikube but we will install kubectl.

Check Out : Kubernetes Repo : Problem with the SSL CA cert

Let’s Begin the installation,

It’s developed by Google and maintained by the Cloud Native Computing Foundation.

You may also manage docker container with Docker Swarm. It provides the same functionality like Kubernetes.

I’m going to create a Single Kubernetes Cluster here.

Step 1 : Before installing Kubernetes, You need to disable the Selinux

Check Out : 

vim /etc/sysconfig/selinux

Step 2 : Now Create a Kubernetes repository

vim /etc/yum.repos.d/kuber.repo

Step 3 : You need to open few Ports for Kubernetes as shown in a figure below

Check Out :

Step 4 : Disable Swap

swapoff -a

Also, Comment on Swap entry in /etc/fstab

Enable br_netfilter

vim /etc/sysctl.d/kub8.conf

Sysctl -p

Now all the settings are done for Kubernetes

Step 5: Start the Installation now

yum install kubeadm kubelet kubectl docker -y

kubeadm : It’s used to create the cluster

kubectl : Command line utility to manage cluster

kubelet : Runs on all the machines in cluster

Now you need to start the services of both docker and kubelet

Check Out :

systemctl start docker && systemctl enable docker

systemctl start kubelet && systemctl enable kubelet

Kubernetes version: v1.14.1

Step 6: Initialize the Kubernetes

kubeadm init –apiserver-advertise address=

Follow the step given in the output of kubernetes to start the cluster

mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $(id -u):$(id -g) $HOME/.kube/config

Step 7: Now you can get a status of cluster and pods

kubectl get nodes

Note : Make sure Clsuter status running and coredns is running

Check Out :

kubectl get pods –all-namespaces

Step 8: Now Add pod network to cluster, run the below commands,

export kubever=$(kubectl version | base64 | tr -d ‘\n’)

kubectl apply -f “$kubever

Run the below command to check the status of Cluster

Check Out :

kubectl get nodes

kubectl get nodes –all-namespaces

Everything has been done from Kubernetes Master node.

You’re done



Please enter your comment!
Please enter your name here

16 − 11 =