为什么Minikube需要明确的管理程序
在Mac上运行Minikube时,我们需要指定VM-Driver,因为它需要一个管理程序来运行它将在其上运行K8群集的虚拟机。
为什么Minikube不能使用主机机器机器机器机管理器说MAC作为主机机器已经具有默认情况下的管理程序?
While running Minikube on mac, we need to specify vm-driver as it needs a hypervisor to run the virtual machine on which it would run the K8 Cluster.
Why can’t Minikube use the hypervisor of the host machine say mac as host machine already has a hypervisor by default ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Minikube有几个驱动程序可以插入不同的虚拟化后端。其中包括 hyperkit hypervisor(docker台式也使用) 。
如果默认要使用其他的虚拟机,则可以配置MiniKikube 这样做:
Minikube has several drivers that can plug into different virtualization backends. That includes the ability to run the cluster inside a single container (the current default) or to use the Hyperkit hypervisor (which Docker Desktop also uses).
If you want to use a different hypervisor by default, you can configure minikube to do that:
Minikube创建了一个简单的本地kubernetes群集,上面有一台虚拟机。 Minikube需要一个虚拟机管理程序,例如VirtualBox或KVM来创建此VM。 Minikube启动了我们(基于我们本地环境)的虚拟机,而kubernetes群集正在VM中运行,即您所有的节点和服务都在VM Box下运行!这仅在 Windows 或 OSX 上。
即使不安装VirtualBox,您也可以在Minikube上工作。 Minikube还支持
- 驱动程序=无
选项,该选项运行了主机上的Kubernetes组件,而不是在VM中运行。使用此驱动程序需要 docker 和 linux 环境,而不是一个管理程序。Minikube creates a simple local kubernetes cluster having one Virtual Machine. Minikube needs a hypervisor such as VirtualBox or KVM to create this VM. Minikube started a virtual machine for us(based on our local environment), and a Kubernetes cluster is running in that VM i.e. all your nodes and services are running under the VM box! This is only case on windows or osx.
You can work on Minikube even without installing VirtualBox. Minikube also supports a
--driver=none
option that runs the Kubernetes components on the host and not in a VM. Using this driver requires Docker and a Linux environment but not a hypervisor.