Start counting k8s nodes from 2

First node is our master node.
This commit is contained in:
Aleksandr Didenko 2016-06-16 14:42:53 +02:00
parent 60fa68e5f7
commit 4c6f85b8ae

View file

@ -1,7 +1,7 @@
#!/bin/bash
nodes=""
i=0
i=1
for nodeip in `cat /root/nodes` ; do
i=$(( $i+1 ))
nodes+=" node${i}[ansible_ssh_host=${nodeip},ip=${nodeip}]"