mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-24 22:46:06 -03:30
Start counting k8s nodes from 2
First node is our master node.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
nodes=""
|
nodes=""
|
||||||
i=0
|
i=1
|
||||||
for nodeip in `cat /root/nodes` ; do
|
for nodeip in `cat /root/nodes` ; do
|
||||||
i=$(( $i+1 ))
|
i=$(( $i+1 ))
|
||||||
nodes+=" node${i}[ansible_ssh_host=${nodeip},ip=${nodeip}]"
|
nodes+=" node${i}[ansible_ssh_host=${nodeip},ip=${nodeip}]"
|
||||||
|
|||||||
Reference in New Issue
Block a user