To reproduce
o configure nodepool with two labels
- name: nodepool-fake2
image: nodepool-fake2
min-ready: 4
providers:
- name: fake-provider
- name: nodepool-fake
image: nodepool-fake
min-ready: 1
providers:
- name: fake-provider
o start max-servers servers
o place them all in a hold state
nodepool -c tools/fake.yaml list | grep ready | awk '{print $2}' | xargs -n 1 nodepool -c tools/fake.yaml hold
o remove them all one at a time, waiting long enough between each delete for a delete/allocation cycle to take place
for x in $(nodepool -c tools/fake.yaml list | grep hold | awk '{print $2}') ; do nodepool -c tools/fake.yaml delete $x ; sleep 120 ; nodepool -c tools/fake.yaml list | grep ready | awk '{print $2}' | xargs -n 1 nodepool -c tools/fake.yaml hold ; sleep 5 ; done
You should end up with only a single type of server being allocated
To reproduce
o configure nodepool with two labels
- name: nodepool-fake2
image: nodepool-fake2
min-ready: 4
providers:
- name: fake-provider
- name: nodepool-fake
image: nodepool-fake
min-ready: 1
providers:
- name: fake-provider
o start max-servers servers
o place them all in a hold state
nodepool -c tools/fake.yaml list | grep ready | awk '{print $2}' | xargs -n 1 nodepool -c tools/fake.yaml hold
o remove them all one at a time, waiting long enough between each delete for a delete/allocation cycle to take place
for x in $(nodepool -c tools/fake.yaml list | grep hold | awk '{print $2}') ; do nodepool -c tools/fake.yaml delete $x ; sleep 120 ; nodepool -c tools/fake.yaml list | grep ready | awk '{print $2}' | xargs -n 1 nodepool -c tools/fake.yaml hold ; sleep 5 ; done
You should end up with only a single type of server being allocated