Quick guide to install Kubernetes via Minikube on Ubuntu 18.04.
Install VirtualBox to be used as the hypervisor.
sudo apt-get install -y virtualbox virtualbox-ext-pack
Install kubectl, the kubernetes command line tool.
sudo apt-get update && \
sudo apt-get install -y apt-transport-https && \
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \
sudo touch /etc/apt/sources.list.d/kubernetes.list && \
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list && \
sudo apt-get update && \
sudo apt-get install -y kubectl
Install Minikube to run your single node kubernetes cluster.
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube && \
sudo cp minikube /usr/local/bin && rm minikube
You can run Minikube and start your cluster by running:
minikube start
You can then see that it is running:
kubectl get nodes
Yay!
Thankyou somuch for helping us out here..