Minikube issue on Windows 10 Home Edition

折月煮酒 提交于 2021-01-07 07:58:47

问题


I'm trying to install Minikube on Windows 10 Home. I don't have Hyper-V but i understand i can still use Minikube to as a remote Docker daemon as well as local Kubernetes cluster.

  • Minikube
  • Chocolatey

I appreciate the assistance please. When i tried starting minikube i get the following error:

So what am i doing wrong?


回答1:


Since Windows 10 Home Edition doesnt support Hyper V, you might want use VirtualBox instead.

Follow Getting Start with Kubernetes in Windows 10 with Minikube and kubectl

In short: 1) install VirtualBox

2) download, install chocolatey

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALUSERSPROFILE%\chocolatey\bin"

3) install kubernetes-cli

choco install kubernetes-cli

4) start minikube with --vm-driver=virtualbox option

minikube start --vm-driver=virtualbox



回答2:


These instructions are for setting up and installing Minikube and its dependencies for use on Windows Home editions that are using Docker Toolbox.

Install Kubectl

  1. Create a new directory that you will move your kubectl binaries into. A good place would be C:\Users\YOURUSERNAME\bin since these path variables will also be made available to the "Docker Quick Start" terminal.

  2. Download the latest kubectl executable from the link on the Kubernetes doc page:

https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-windows

  1. Move this downloaded .exe file into the bin directory you created.

  2. Use Windows search to type “env” or “edit” then select “Edit the system environment variables”

  3. In the System Properties dialog box, click “Environment Variables”.

  4. In User Variables click on the “Path” Variable and then click “Edit”

  5. Click “New” and then type C:\Users\YOURUSERNAME\bin

  6. Click "OK"

  7. Restart your terminal and test by typing kubectl into it. You should get the basic commands and help menu printed back to your screen. If this doesn't work try restarting your machine.

Install Minikube

VirtualBox should already be installed from setting up Docker Toolbox, so we wont need to install this again.

To install Minikube we can use the standalone installer, which is available by clicking this link:

https://github.com/kubernetes/minikube/releases/latest/download/minikube-installer.exe

After the installer finishes, restart your terminal and test your installation:

minikube status

Running minikube start will provision the VirtualBox machines and startup your Kubernetes services.



来源:https://stackoverflow.com/questions/59203065/minikube-issue-on-windows-10-home-edition

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!