如何使用ansible在现有集群中添加glusterfs节点
How to add glusterfs node in existing cluster with ansible
我已经用 glusterfs 部署了 OKD 集群,现在我想再添加一个 glusterfs 节点,但找不到任何 playbook 来解决它。
https://github.com/openshift/openshift-ansible/tree/master/playbooks/openshift-glusterfs
我找到一本没有描述的剧本
https://github.com/openshift/openshift-ansible/blob/master/playbooks/openshift-glusterfs/upgrade.yml
要在现有组中添加 glusterfs 节点,请按照以下操作
像下面这样更改清单在 glusterfs 中添加带有标签的节点
[glusterfs]
10.1.1.1 glusterfs_devices='[ "/dev/vdb" ]'
10.1.1.2 glusterfs_devices='[ "/dev/vdb" ]' openshift_node_labels="type=upgrade"
现在运行 剧本
ansible-playbook -i inventory2.ini openshift-ansible/playbooks/openshift-glusterfs/config.yml -e openshift_upgrade_nodes_label="type=upgrade"
由于 gluster 已经安装在 10.1.1.1 上,上面的脚本将在现有的 gluster 集群中添加 10.1.1.2
我已经用 glusterfs 部署了 OKD 集群,现在我想再添加一个 glusterfs 节点,但找不到任何 playbook 来解决它。
https://github.com/openshift/openshift-ansible/tree/master/playbooks/openshift-glusterfs
我找到一本没有描述的剧本
https://github.com/openshift/openshift-ansible/blob/master/playbooks/openshift-glusterfs/upgrade.yml
要在现有组中添加 glusterfs 节点,请按照以下操作
像下面这样更改清单在 glusterfs 中添加带有标签的节点
[glusterfs]
10.1.1.1 glusterfs_devices='[ "/dev/vdb" ]'
10.1.1.2 glusterfs_devices='[ "/dev/vdb" ]' openshift_node_labels="type=upgrade"
现在运行 剧本
ansible-playbook -i inventory2.ini openshift-ansible/playbooks/openshift-glusterfs/config.yml -e openshift_upgrade_nodes_label="type=upgrade"
由于 gluster 已经安装在 10.1.1.1 上,上面的脚本将在现有的 gluster 集群中添加 10.1.1.2