Minikube Manually Installations:

Minikube

Like kind, minikube is a tool that lets you run Kubernetes locally. minikube runs an all-in-one or a multi-node local Kubernetes cluster on your personal computer (including Windows, macOS and Linux PCs) so that you can try out Kubernetes, or for daily development work.

minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes.

Reference:

https://www.digitalocean.com/community/tutorials/how-to-use-minikube-for-local-kubernetes-development-and-testing

https://deepakcloud22.hashnode.dev/minikube-installation-launching-your-first-kubernetes-cluster-with-nginx-running

  1. Kubectl install

  2. Minikube install

Kubectl Install with Homebrew on macOS

References: https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/

If you are on macOS and using Homebrew package manager, you can install kubectl with Homebrew.

  1. Run the installation command:

brew install kubectl

  1. Test to ensure the version you installed is up-to-date:

kubectl version --client

Minikube Install with Homebrew on macOS

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

  1. To install the latest minikube stable release on x86-64 macOS using Homebrew:

    If the Homebrew Package Manager is installed:

brew install minikube

  1. Start your cluster

From a terminal with administrator access (but not logged in as root), run:

minikube start

  1. Interact with your cluster

If you already have kubectl installed, you can now use it to access your shiny new cluster:

kubectl get po -A

  1. Deploy sample applications

Create a sample deployment and expose it on port 8080:

kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
kubectl expose deployment hello-minikube --type=NodePort --port=8080

It may take a moment, but your deployment will soon show up when you run:

kubectl get services hello-minikube

The easiest way to access this service is to let minikube launch a web browser for you:

minikube service hello-minikube

Yah!!!!!!! Our application is now available at http://localhost:7080/.
You should be able to see the request metadata in the application output. Try changing the path of the request and observe the changes. Similarly, you can do a POST request and observe the body show up in the output.

Managing Minikube Cluster

To Start the minikube, run

minikube start

To stop the minikube, run

minikube stop

To delete the minikube, run

minikube delete

Delete all of the minikube clusters:

minikube delete --all