Windows 10家庭版上的Minikube问题 [英] Minikube issue on Windows 10 Home Edition

查看:248
本文介绍了Windows 10家庭版上的Minikube问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 10 Home上安装Minikube。我没有Hyper-V,但我知道我仍然可以将Minikube用作远程Docker守护程序以及本地Kubernetes集群。

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

  • 巧克力

谢谢您的帮助。当我尝试启动minikube时,出现以下错误:

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

那我在做什么错?

推荐答案

这些说明用于设置和安装Minikube及其依赖项,以用于使用Docker工具箱的Windows Home版本。

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

安装Kubectl


  1. 创建一个新目录,将您的 kubectl 二进制文件移动到其中。一个好地方是 C:\Users\YOURUSERNAME\bin ,因为这些路径变量也将提供给 Docker Quick Start终端。

  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.

从Kubernetes文档页面上的链接下载最新的 kubectl 可执行文件:

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. 将此下载的 .exe 文件移动到您创建的bin目录中。

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

使用Windows搜索键入 env或 edit,然后选择 Edit the system environment variables

Use Windows search to type "env" or "edit" then select "Edit the system environment variables"

在系统属性对话框中,单击环境变量。

In the System Properties dialog box, click "Environment Variables".

在用户变量中,单击路径变量,然后单击编辑

In User Variables click on the "Path" Variable and then click "Edit"

单击新建,然后键入 C:\Users\YOURUSE RNAME\bin

单击确定

重新启动您的终端,并在其中输入 kubectl 进行测试。您应该将基本命令和帮助菜单打印回到屏幕上。如果这不起作用,请尝试重新启动计算机。

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.

安装Minikube

应该已经通过设置Docker Toolbox安装了VirtualBox,因此我们无需再次安装它。

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

要安装Minikube我们可以使用独立安装程序,可通过单击以下链接使用该安装程序:

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

运行 minikube start 将提供VirtualBox机器并启动您的Kubernetes服务。

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

这篇关于Windows 10家庭版上的Minikube问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆