Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drain and uncordon #40

Open
tcrall opened this issue May 22, 2017 · 1 comment
Open

drain and uncordon #40

tcrall opened this issue May 22, 2017 · 1 comment

Comments

@tcrall
Copy link

tcrall commented May 22, 2017

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

@mmoonn2
Copy link
Member

mmoonn2 commented May 26, 2017

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants