node-k8s-client icon indicating copy to clipboard operation
node-k8s-client copied to clipboard

drain and uncordon

Open tcrall opened this issue 7 years ago • 1 comments

Can I use this to do 'kubectl drain' and 'kubectl uncordon' operations?

tcrall avatar May 22 '17 20:05 tcrall

kubectl.command('get pod pod_name --output=json', function(err, data){})
kubectl.command('get pod pod_name --output=json').then()
const data = await kubectl.command('get pod pod_name --output=json')
//try this
kubectl.command('uncordon')

mmoonn2 avatar May 26 '17 04:05 mmoonn2