简体   繁体   English

如何在Rancher集群上安装kubernetes集群?

[英]How to install kubernetes cluster on Rancher cluster?

Use Rancher server on several servers: 在多台服务器上使用Rancher服务器:

  • Master
  • Node1 节点1
  • Node2 节点2
  • Node3 节点3

Maybe only need rancher agent on node servers. 也许只需要节点服务器上的牧场代理即可。

Also want to make kubernetes cluster on these servers. 还想使kubernetes在这些服务器上集群。 So install Kubernetes master on Rancher master, install Kubernetes nodes(kubelet) on Rancher nodes. 因此,在Rancher master上安装Kubernetes master,在Rancher节点上安装Kubernetes节点(kubelet)。 Is it right? 这样对吗?

So, the Kubernetes nodes can't install using Rancher server but should do it by self? 因此,Kubernetes节点无法使用Rancher服务器进行安装,但应自行安装吗?

You will need a Rancher Agent on any server you want Rancher to place containers on. 您要在Rancher上放置容器的任何服务器上都需要Rancher Agent。 Rancher can deploy Kubernetes for you. Rancher可以为您部署Kubernetes。 I believe what you want to do is add all of the nodes, including the Rancher master, to a single Cattle environment(The Default env is Cattle). 我相信您要做的就是将所有节点(包括Rancher主节点)添加到单个Cattle环境中(默认env为Cattle)。 When adding the Rancher Server make sure you set CATTLE_AGENT_IP=. 添加Rancher Server时,请确保设置CATTLE_AGENT_IP =。 Once the hosts are registered, you will want to set host labels on the nodes. 主机注册后,您将需要在节点上设置主机标签。 For nodes 1,2,3 you will set the label compute=true . 对于节点1,2,3,将设置标签compute=true On the Rancher Server you will set host 2 host labels, etcd=true and orchestration=true . 在Rancher Server上,您将设置主机2主机标签, etcd=trueorchestration=true

Once the labels are set up. 标签设置好之后。 Click on Catalog and search for Kubernetes. 单击目录并搜索Kubernetes。 You can probably stick with most defaults, but CHANGE plane isolation to required . 您可能会坚持使用大多数默认设置,但是将plane isolation更改为required

Rancher should deploy Kubernetes management servers on the same host as your Rancher Server and the remaining nodes will be Kuberenetes minions. Rancher应该将Kubernetes管理服务器与Rancher Server部署在同一主机上,其余节点将是Kuberenetes奴才。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM