kops drain node

Created on 23 Nov 2016  路  3Comments  路  Source: kubernetes/kops

Kops needs to be able to drain a node, and it would be good for it to handle petsets as well. As well as other alpha components such as scheduled jobs.

Not sure if this will be exposed from the cli, but we need this functionality to improve upgrades and updates.

P1

Most helpful comment

What about node draining as a lifecycle hook in AutoScalingGroup ?

All 3 comments

This is code that is in the master branch, and it should drain petsets as well. That is the reason that we don't use kubectl drain, as it rarely supports alpha components. This code may change it in 1.5, but till then, we need to drain via code in kops. Also, this needs to be tested with a master, as I am uncertain that it will take etcd offline.

Here is the code example https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/drain.go

What about node draining as a lifecycle hook in AutoScalingGroup ?

Implemented - closing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrislovecnm picture chrislovecnm  路  3Comments

georgebuckerfield picture georgebuckerfield  路  4Comments

Caskia picture Caskia  路  3Comments

mikejoh picture mikejoh  路  3Comments

drewfisher314 picture drewfisher314  路  4Comments