Amazon-eks-ami: How to add two node labels to bootstrap arguments using --kubelet-extra-args

Created on 11 Oct 2018  路  2Comments  路  Source: awslabs/amazon-eks-ami

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

Most helpful comment

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'

All 2 comments

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'

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

Was this page helpful?
0 / 5 - 0 ratings