minikube installation steps

minikube installation steps given below for reference. minikube is a tool that lets you run Kubernetes locally. minikube runs a single-node Kubernetes cluster on your personal computer (including Windows, macOS and Linux PCs) so that you can try out Kubernetes, or for daily development work.

Before installing make sure that you are referring to What youll need section. Minimum CPU’s required is 2 and if you are on a VM, please make sure that the settings are modified. Please refer to this post for the error message that comes up when you start minikube.

1.Installation

Installation steps are provided for 3 different download options (Binary download, Debian package, RPM package) for two architectures, amd64 / x86_64 & arm64 / aarch64.

I will be using amd64 / x86_64 as I am on Ubuntu v18 OS distro and will be using Binary download option.

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube

2. Start the Cluster

Issue below command to start the cluster.

Note: Run the command from a terminal with administrator access (but not logged in as root)

minikube start

I have used root user to start the cluster as I have used docker installation with root user. If you face any issues here, please check this post to understand the alternatives. I did face issues like mentioned in the post.

Below screenshot from my system where I have used below command as opposed to “minikube start” command.

minikube start –force –driver=docker

3. Interact with the cluster

Issue the command and open the URL in the browser. Run the command prompt as is and use Ctrl+C to move out of the prompt.

minikube dashboard

This completes the installation of minikube and we can now play with k8s.

To stop minikube issue below command and check the status.

minikube stop

check the status of minikube by issuing below command,

minikube status

References:

https://kubernetes.io/docs/tasks/tools/

https://minikube.sigs.k8s.io/docs/start/

https://kubernetes.io/docs/tutorials/hello-minikube/

One comment on “minikube installation steps”

Leave a Reply

Your email address will not be published. Required fields are marked *