• Updated:

K8s install Minikube

(Oficial Doc)

Technology to quickly set up a Kubernetes cluster locally to learn how to use Kubernetes.

Installation

Install Docker Desktop for windows and start it.
Then install minikube through CLI or download here the exe

winget install Kubernetes.minikube

Now run

minikube start

Commands

minikube start
minikube stop
minikube status

minikube ip
minikube logs
minikube ssh

minikube help

Launch single node K8s cluster

# start VM with cluster running inside
minikube start --wait=false
# cluster details and health status
kubectl cluster-info
# shows nudes in the cluster
kubectl get nodes

kubectl create deployment first-deployment --image=katacoda/docker-http-server
kubectl expose deployment first-deployment --port=80 --type=NodePort

This starts a VM for you with a K8s cluster running inside. This cluster can be interacted with using kubectl. This is the main approach for managing K8s and the apps running on top of the cluster.

Launch multi cluster

# create a cluster for dev environment
minikube start -p dev

# see a list of all profiles
minikube profile list

# change to dev profile
minikube profile dev

Reference(s)

https://docs.docker.com/engine/install/ubuntu/
https://k8s-docs.netlify.app/en/docs/tasks/tools/install-minikube/
https://minikube.sigs.k8s.io/docs/start/