Skip to content

Instantly share code, notes, and snippets.

@john-auld
Last active September 2, 2019 21:55
Show Gist options
  • Save john-auld/1849061c5ac1a7bb6080250c38def34c to your computer and use it in GitHub Desktop.
Save john-auld/1849061c5ac1a7bb6080250c38def34c to your computer and use it in GitHub Desktop.
Minikube on Windows 10 with Hyper-V

Brief notes on using minikube on Windows 10 Professional

Assumming that Hyper-V is setup and working, with a virtual switch named "External".

Downloads

Minikube

kubectl

Ensure that the versions are current. Using an older version of kubectl with a more recent version of minikube can throw an error similar to the one below.

kubectl --namespace=production apply -f k8s/services/
error: group map[:0xc820376b60 authorization.k8s.io:0xc820376c40 batch:0xc820376d20 componentconfig:0xc820376d90 extensions:0xc820376e00 policy:0xc820376e70 certificates.k8s.io:0xc8202cea80 federation:0xc820376af0 autoscaling:0xc820376cb0 rbac.authorization.k8s.io:0xc820376ee0 authentication.k8s.io:0xc820376fc0 apps:0xc820376bd0] is already registered

Install notes from Microsoft

Getting started

Learning minikube

Install VM and start minikube

Administrator rights are needed to manage Hyper-V

minikube start --vm-driver="hyperv" --memory=2048 --hyperv-virtual-switch="External" --v=7 --alsologtostderr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment