Saturday, July 25, 2020

Kubernetes (Minikube) set up on your PC

1. Download kubectl, minikube, minishift and store at the following location
C:\Program Files\Kubernetes\minikube

2. Add this path to environment variable
Start -> Type env -> Click on system environment variable
and click on environment varilable and double click on PATH from System Variables section
Click on New and paste your path.

3. Open your command prompt and type minukube
if you get out put rather than error message, it is set up correctly. If you get error, fix it.

4. Download and install virtualbox from

5. Open your DOS prompt and run the command below,
> minikube start --driver=virtualbox

This command basically downloads all required packages to install and setup kubernetes.

6. I basically rename kubectl command to kc only so I will have shortcut

7. Verify the configuration
C:\Users\Admin>cd .kube
C:\Users\Admin\.kube>notepad config

C:\Users\Admin\.kube>kc cluster-info
Kubernetes master is running at
KubeDNS is running at

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

C:\Users\Admin>kc get all
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP    <none>        443/TCP   42m

8. Install following tools
- Visual Studio Code
- Node.js
- git
- OpenShift CLI (oc)

Reference Documents

No comments:

Post a Comment