Goyoo / node-k8s-client

kubernetes client of node.js
MIT License
164 stars 59 forks source link

drain and uncordon #40

Open tcrall opened 7 years ago

tcrall commented 7 years ago

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

mmoonn2 commented 7 years ago
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')