Installation of Kubernetes on Ubuntu 18.04
In this blog, we will learn how to install Kubernetes on Ubuntu?
When we need any operating system environment in a sec we use container technique to install the operating system in a sec known as Docker. Kubernetes works on the docker. Kubernetes are used for monitoring jobs. Kubernetes are used to launch in the same environment in multiple time.
Step 1:- Check the Virtual Box environment
For this step, check if virtualization is supported on Linux, run the command, and verify that the output is non-empty.
grep -E --color 'vmx|svm' /proc/cpuinfo
Step 2:- Install the MINIKUBE:-
Minikube is a tool that runs a single-node Kubernetes cluster in a virtual machine on your personal computer. Minikube simply ran the Kubernetes. Minikube shows the status, Minikube provides an environment to run the Kubernetes operation.
command : #minikube start — vm-driver=virtualbox — alsologtostderr
The above command installs the minikube on VirtualBox. Without any manual things automatically install VirtualBox.
Start minikube:-
command:- #minikube start
The above command runs the minikube and starts the minikube and gives the environment of Kubernetes.
Check the minikube status:-
#minikube status
Stop the minikube:-
#minikube stop
Step 3: Install the Kubectl
#sudo apt-get update
#sudo apt-get install -y apt-transport-https
#sudo apt-get install docker.io
#sudo systemctl start docker
#sudo systemctl enable docker
# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
Go to :# otherlocation/computer/etc/apt/source.list.dopen the text editor, write the code and save as kubernates.listdeb https://apt.kubernetes.io/ kubernetes-xenial mainsudo apt-get updatesudo apt-get install -y kubectl
Run the Kubectl
#kubectl get pods
In this blog basic installation process how to minikube install on the virtual box and how to kubectl install and work.
Thanks for reading.