kubeform icon indicating copy to clipboard operation
kubeform copied to clipboard

Replace is_first_master with run_once

Open enxebre opened this issue 9 years ago • 4 comments

Replace is_first_master with run_once https://github.com/Capgemini/kubeform/search?utf8=%E2%9C%93&q=is_first_master

enxebre avatar Mar 22 '16 14:03 enxebre

One question from me on this - are we 100% guaranteed that master[0] will always be master[0] from the inventory (it makes sense that it would be but just checking)? sometimes when i look at a playbook i see it runs on master[2] first but not sure if thats because of parallelisation or inventory

tayzlor avatar Mar 22 '16 14:03 tayzlor

For ensuring the same machine you combine it with delegate_to: your_hostname or you just do when: inventory_hostname == yourGroup[0] But I cant see any reason why this has to run on master[0], on my understanding we just want it to run once, no matter which master.

enxebre avatar Mar 22 '16 14:03 enxebre

yeh should just be running once talking to the api server right?

wallies avatar Mar 22 '16 14:03 wallies

I thought we only installed kubectl on master 1 but its installed in every master, ignore me.

tayzlor avatar Mar 22 '16 15:03 tayzlor