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

How to add two node labels to bootstrap arguments using --kubelet-extra-args #67

Closed
D2809 opened this issue Oct 11, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@D2809
Copy link

commented Oct 11, 2018

I am trying doing this
ParameterKey: "BootstrapArguments", ParameterValue: "--kubelet-extra-args --node-labels=MyKey=MyValue,MyKey2=MyValue2"
But this is not working.
If I try adding only one key pair value then node labels are gettig attached to the node.
What is the error that I am doing

@emman27

This comment has been minimized.

Copy link
Contributor

commented Oct 17, 2018

Not sure what bootstrap arguments are, but here's my userdata script on my EKS worker nodes:

#!/bin/bash -xe

/etc/eks/bootstrap.sh cluster_name --kubelet-extra-args '--node-labels=something=hello,somethingelse=bye --register-with-taints=taint1=true'

@micahhausler

This comment has been minimized.

Copy link
Member

commented Oct 23, 2018

As @emman27 you can surround the arguments with a single quote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.