如何创建多节点 kubernetes 集群
How to create multinode kubernetes clusters
所有 kubernetes 指令都要求与 minikube 一起工作,为您提供一个 kubernetes 主机。哪些选项可用于真正的多节点集群。例如,我有可用的 VM 服务器。我需要使用什么工具来在我的 Mac 上启动一些 VMWare 融合机器并创建一个 Kubernetes 集群。我可以在 VirtualBox 中启动几台机器并将它们用作 Kubernetes 集群吗?
'minikube' 非常适合在单个节点上启动 kubernetes。如果您想为多节点环境启动 kubernetes,请尝试 'kubeadm'
https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/
我认为我们需要在这里澄清一些定义。
首先,什么是Kubernetes:
Kubernetes is a portable, extensible open-source platform for managing
containerized workloads and services, that facilitates both
declarative configuration and automation.
Kubernetes has a number of features. It can be thought of as: a
container platform
- a microservices platform
- a portable cloud platform and a lot more.
您可以阅读更多关于什么是 Kubernetes 和什么不是 Kubernetes here.
其次,什么是minikube? Minikube 是 Kubernetes 的一体式安装,因为它将 Kubernetes 的所有 components(主组件、节点组件、潜在附加组件)和 运行s 它们放在一个虚拟机中。
您可以通过此 documentation section, and if there is no minikube as you have asked, there still are many different ways to install minikube, for example, kubeadm as Murli said, kubespray, Google Kubernetes Engine, kops, Azure Kubernetes Service 中列出的多种不同方式安装 Kubernetes
我强烈建议您在 Kubernetes 文档中尝试 kelseyhightower/kubernetes-the-hard-way as it will walk you through setting up the cluster manually which will give you a good understanding on how things work inside Kubernetes - you can do that in Google Cloud Platform (there is 300$ free trial) or other platforms. There is also this guide,您可以在其中逐步 运行 物理设备上的 Kubernetes:
Note that it requires considerably more effort than using one of the
pre-defined guides.
This guide is also useful for those wanting to understand at a high
level some of the steps that existing cluster setup scripts are
making.
所有 kubernetes 指令都要求与 minikube 一起工作,为您提供一个 kubernetes 主机。哪些选项可用于真正的多节点集群。例如,我有可用的 VM 服务器。我需要使用什么工具来在我的 Mac 上启动一些 VMWare 融合机器并创建一个 Kubernetes 集群。我可以在 VirtualBox 中启动几台机器并将它们用作 Kubernetes 集群吗?
'minikube' 非常适合在单个节点上启动 kubernetes。如果您想为多节点环境启动 kubernetes,请尝试 'kubeadm'
https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/
我认为我们需要在这里澄清一些定义。
首先,什么是Kubernetes:
Kubernetes is a portable, extensible open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation.
Kubernetes has a number of features. It can be thought of as: a container platform - a microservices platform - a portable cloud platform and a lot more.
您可以阅读更多关于什么是 Kubernetes 和什么不是 Kubernetes here.
其次,什么是minikube? Minikube 是 Kubernetes 的一体式安装,因为它将 Kubernetes 的所有 components(主组件、节点组件、潜在附加组件)和 运行s 它们放在一个虚拟机中。 您可以通过此 documentation section, and if there is no minikube as you have asked, there still are many different ways to install minikube, for example, kubeadm as Murli said, kubespray, Google Kubernetes Engine, kops, Azure Kubernetes Service 中列出的多种不同方式安装 Kubernetes
我强烈建议您在 Kubernetes 文档中尝试 kelseyhightower/kubernetes-the-hard-way as it will walk you through setting up the cluster manually which will give you a good understanding on how things work inside Kubernetes - you can do that in Google Cloud Platform (there is 300$ free trial) or other platforms. There is also this guide,您可以在其中逐步 运行 物理设备上的 Kubernetes:
Note that it requires considerably more effort than using one of the pre-defined guides.
This guide is also useful for those wanting to understand at a high level some of the steps that existing cluster setup scripts are making.