Windows版Docker中的Minikube与Kubernetes [英] Minikube vs Kubernetes in Docker for Windows

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

问题描述

我见过的使用Kubernetes在本地开发的大多数教程都使用Minikube.在适用于Windows的Edge的最新Edge版本中,您还可以启用Kubernetes.我试图了解两者之间的区别以及应该使用的区别.

Most tutorials I've seen for developing with Kubernetes locally use Minikube. In the latest Edge release of Docker for Windows, you can also enable Kubernetes. I'm trying to understand the differences between the two and which I should use.

  1. Minikube可让您选择所需的Kubernetes版本,适用于Windows的Docker可以做到吗?我看不到配置它的方法.
  2. Minikube具有CLI命令,可启用仪表板,堆,入口和其他插件.我不确定为什么,因为我的理解是它们只是执行kubectl apply -f http://....
  3. 使用Minikube,我可以执行minikube ip来获取用于入口的群集IP地址,如何使用适用于Windows的Docker来做到这一点?
  4. 还有什么我需要关注的吗?
  1. Minikube lets you choose the version of Kubernetes you want, can Docker for Windows do that? I don't see a way to configure it.
  2. Minikube has CLI commands to enable the dashboard, heapster, ingress and other addons. I'm not sure why because my undertstanding is that these are simply executing kubectl apply -f http://....
  3. With Minikube I can do a minikube ip to get the cluster IP address for ingress, how can I do this with Docker for Windows?
  4. Is there anything else different that I should care about.

推荐答案

我觉得您在很大程度上理解了空间,并且大部分已经对您的问题有了答案.您可能会发现适用于Mac的Docker与Docker Toolbox ,内容丰富,即使它是与Mac等效而不是Windows,并且是作为虚拟机而不是Kubernetes打包的Docker.

I feel like you largely understand the space, and mostly have answers to your questions already. You might find Docker for Mac vs. Docker Toolbox an informative read, even if it's about the Mac equivalent rather than Windows and about Docker packaged as a VM rather than Kubernetes specifically.

  1. 实际上,您对Docker Edge桌面发行版发布的特定版本的Kubernetes感到困惑.

  1. In fact you are stuck with the specific version of Kubernetes the Docker Edge desktop distribution publishes.

.

我相信NodePort类型的服务会发布在您主机的IP地址上;没有像Docker Toolbox一样的中间VM地址.

I believe NodePort-type Services are published on your host's IP address; there isn't an intermediate VM address like there is with Docker Toolbox.

Docker Toolbox和minikube始终使用具有现成虚拟机管理程序的成熟虚拟机.如果可用,则Docker桌面应用程序可能会使用轻量级的虚拟化引擎.

Docker Toolbox and minikube always use a full-blown virtual machine with an off-the-shelf hypervisor. The Docker desktop application might use a lighter-weight virtualization engine if one is available.

Kubernetes可能涉及一些重要的背景工作.如果您正在使用Kubernetes-in-Docker,则很难关闭" Kubernetes,并且仍然可以使用Docker.但是如果您有单独的minikube VM,则可以停止它.

Kubernetes can involve some significant background work. If you're using Kubernetes-in-Docker it's hard to "turn off" Kubernetes and still have Docker available; but if you have a separate minikube VM you can just stop it.

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

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