Step-by-step instructions to install & configure minikube on Windows 10 https://kubernetes.io/docs/tasks/tools/install-minikube/
If you are on Windows and using Chocolatey package manager, you can install kubectl with Chocolatey. If you haven't installed Chocolately yet, find instructions HERE
-
Run the installation command from a command prompt:
choco install kubernetes-cli
-
Test to ensure the version you installed is sufficiently up-to-date:
code kubectl version
-
Change to your %HOME% directory. For example:
cd C:\users\your username\
-
Create the .kube directory:
mkdir .kube
-
Change to the .kube directory you just created:
cd .kube
NOTE: Edit the config file with a text editor of your choice, such as Notepad.
Find the name of your external virtual switch or create one. In this case, we generally create one called 'minikube' for ease of reference.
For Windows, download the minikube-installer.exe from the list at https://github.com/kubernetes/minikube/releases
Default install directory is C:\Program Files (x86)\Kubernetes\Minikube
The default install directory is 'C:\Program Files (x86)\Kubernetes\Minikube'.
-
Add this directory to the PATH system variable.
-
Also, configure this path as as the value for an environment variable named MINIKUBE_HOME.
It's a good idea to launch Minikube with verbose logging enabled, so if it fails to start, you will have some detail as to how. After you install Minikube, the statement below will download the Minikube .iso, setup the VM, and establish the profile directory at "c:\users\your username.minikube"
minikube start --vm-driver hyperv --hyperv-virtual-switch "minikube" --v=7 --alsologtostderr
NOTE: If this command hangs on starting, you can verify the minikube VM is running in Hyper-V Manager (as it usually is), close the PowerShell window, open a new one and move to the next step.
Sometimes the Heapster addon (which includes Grafana) is not enabled by default, and you will need this.
First, list the available addons.
minikube addons list
If heapster(includes grafana & influx) and metrics-server show as disabled, enable them as follows: More on metrics-server and metrics API at https://github.com/kubernetes-incubator/metrics-server/
minikube addons enable heapster
minikube addons enable metrics-server
View the pods you just created.
Open the kubernetes dashboard, simply type the command below and it will open in your default browser.
Minikube dashboard
Open the grafana dashboard, simply type the command below and it will open in your default browser.
Minikube addons open heapster
If all the above are successful, proceed to hello-minikube workload and attempt to run your first workload.
Because minikube sometimes hangs on the 'minikube stop' command in this build. There are a few fixes around the Internet, but you may just want to leave minikube running. It takes < 1GB ram if you delete your running services.