kubesphere集群節點擴容


原有的節點是 : master[123] , node[1234]

新加的節點node5

 

一、修改配置文件hosts.ini

[root@master0 ~]# cat kubesphere-all-offline-advanced-2.0.2/conf/hosts.ini 
 
[all]
master1 ansible_connection=local  ip=192.168.37.11  ansible_ssh_pass=root
master2 ansible_host=192.168.37.12  ip=192.168.37.12  ansible_ssh_pass=root
master3 ansible_host=192.168.37.13  ip=192.168.37.13  ansible_ssh_pass=root
node1  ansible_host=192.168.37.14  ip=192.168.37.14  ansible_ssh_pass=root
node2  ansible_host=192.168.37.15  ip=192.168.37.15  ansible_ssh_pass=root
node3  ansible_host=192.168.37.16  ip=192.168.37.16  ansible_ssh_pass=root
node4  ansible_host=192.168.37.17  ip=192.168.37.17  ansible_ssh_pass=root
node5 ansible_host=192.168.37.19 ip=192.168.37.19 ansible_ssh_pass=root
[local-registry] 
master1

[kube
-master]
master1
master2
master3

[kube
-node]
node1
node2
node3
node4
node5

[etcd]
master0
master1
master2

[k8s
-cluster:children]
kube
-node
kube
-master

 

二、安裝

# cd kubesphere-all-offline-advanced-2.0.2/scripts/
# ./add-nodes.sh

安裝過程不報錯,,則添加新的節點成功。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM