Skip to main content

Kubernetes Lab Setup

Updated 2 min readMarkdown

Firstly open a site and download the minikube extension which is the best software to run kubernetes

minikube start | minikube (k8s.io)

Press on the above link and download the link 👆

and then install the minikube and then open it on cmd by that minikube path

that's the path and open it

minikube.exe start --driver=virtualbox --kubernetes-version=v1.20.0

use this above command on the cmd as shown in the cmd 👆👆

as it will take some time but it will done

now open other cmd of same of the minikube

curl.exe -LO "https://dl.k8s.io/v1.28.3/bin/windows/amd64/kubectl.exe.sha256"

and then use the above command 👆👆

minikube status

now when the installation of minikube is complete then use the command minikube status to check is this running or not.

kubectl.exe cluster-info

now use the above command 👆👆

as you can see that there is no pods are in the above screenshot

now we are creating a new pods by the below command 👇

here we are creating a new pod by the command kubectl.exe run azfar --image=httpd

and then when we check the pod by the command kubectl.exe get pods then it will show as shown in the above screenshot 👆👆

If you want to delete the pods then use the below command 👇👇

kubectl delete pods azfar

Troubleshooting-

While starting Minikube, you are facing the issue: "This computer doesn't have VT-X/AMD-v enabled," as shown in the screenshot below.

Then you should use this command to resolve this-

minikube.exe start --no-vtx-check

No comments yet. Be the first to comment.