首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Kube:使用Ansible为K8S cluster准备VM

Kube:使用Ansible为K8S cluster准备VM(vSphere)

.var file

自定义集群名称。

自定义master节点ip地址。

自定义worker节点ip地址。

.playbook file

Create VM folder for K8S:在vsphere_folder下使用k8s_name创建目录。

Create VM for K8S master:使用master_node_ipaddrs循环创建master vm。

Set VM attributes for K8S master:为master vm设置custom attributes。

Create VM for K8S worker:使用worker_node_ipaddrs循环创建worker vm。

Set VM attributes for K8S worker:为worker vm设置custom attributes。

Gather VM facts for K8S master:收集master vm信息。

Gather VM facts for K8S worker:收集worker vm信息。

Create host file for K8S cluster:使用host_file_dest创建inventory文件。

剩余:编辑inventory文件。

.inventory file

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20180709G1EV8700?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券