英文:
Minikube single node cluster architecture
问题
我对Minikube单节点集群的工作原理感到困惑。当我使用minikube start --driver=docker
启动一个K8s集群时,单节点是一个Docker容器还是我们本地机器?我假设单节点是本地机器,而Pod是在此节点内的容器。
可以有人确认这一点吗?或者纠正我吗?
我已经尝试查阅Minikube文档中的解释,但未能找到明确的答案。
英文:
I am confused as to how the minikube single node cluster works, when I start a k8s cluster using minikube start --driver=docker
, is the single node itself a docker container, or it is our local machine? I assume that single node is the local machine and the pods are containers inside this node.
Can anyone confirm this? Or perhaps correct me?
I have tried looking into the explanations in the minikube docs, but could not find a definitive answer.
答案1
得分: 1
在kubernetes-basics/使用Minikube创建集群的最后两段中,它说:
> Minikube
是一个轻量级的Kubernetes实现,它在您的本地机器上创建**虚拟机(VM)**并部署一个仅包含一个节点的简单集群。
Minikube通过在Linux、MacOS或Windows操作系统上使用虚拟化管理器创建一个包含单个节点的集群,该节点位于**虚拟机(VM)**中。
英文:
In the last two paragraphs of kubernetes-basics/Using Minikube to Create a Cluster, it says:
> Minikube
is a lightweight Kubernetes implementation that creates a VM on your local machine and deploys a simple cluster containing only one node.
Minikube creates a single node cluster contained in a virtual machine (VM), with the help of a virtualization manager on Linux, MacOS, or Windows operating systems.
答案2
得分: 1
Minikube集群是一个单节点集群,意味着它仅由一个机器组成 - 通常是在我们的笔记本电脑或台式机上运行的容器化或虚拟机,并部署一个仅包含一个节点的简单集群。
Kubernetes集群中的节点被分配角色。启动您的Minikube集群,然后运行以下命令:
kubectl get nodes
您应该看到一个名为minikube的节点,因为这是一个单节点集群。
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane,master 99s v1.23.1
有关单节点集群架构的信息,请参考Eric Gregory编写的博客。
英文:
Minikube cluster is a single-node cluster, meaning that it consists of only one machine–typically a containerized or virtual machine running on our laptop or desktop and deploys a simple cluster containing only one node.
Nodes in Kubernetes clusters are assigned roles. Start your Minikube cluster and then run the following command:
kubectl get nodes
You should see one node, named minikube, because this is a single-node cluster.
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane,master 99s v1.23.1
Refer to the blog written by Eric Gregory for information on architecture of single-node clusters.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论