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
领取专属 10元无门槛券
私享最新 技术干货