-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Environment variables is not be set with overrideBootstrapCommand on non managed nodegroup #4055
Comments
Hi @cw-sakamoto thanks for asking. The purpose of Having said that, I could see the value in setting up the vars file anyway so that those values are available to the user if they wish to use them. I will bring it up with the team 👍 .
You will not be able to change that script, as it will not have been loaded onto the AMI with userdata. When you use
You should be able to set anything you want in your overrideBootstrapCommand: |
#!/bin/bash
export FOO=etc # set some env vars
# edit some files maybe etc
/etc/eks/bootstrap.sh <cluster-name> --kubelet-extra-args '--node-labels=etc --register-with-taints=etc' $FOO --container-runtime containerd If you really want to edit Lastly, we are about to merge #4051, so in the next release there will be a config option in |
@Callisto13 Thanks for your reply.
Thank you! 😃 I am very excited about this pull request(#4051). |
Cool 😎 . We release every Friday, so that PR might not make it in today, in which case it will be out in 0.62.0-rc.0 |
What help do you need?
If I use
overrideBootstrapCommand
on non managed nodegroup,/etc/eksctl/kubelet.env
and so on are not generated and it seems difficult to set environment variables, is this a specification?At point https://github.com/weaveworks/eksctl/blob/main/pkg/nodebootstrap/userdata.go#L118-L133, if
overrideBootstrapCommand
is specified, some of the processing is skipped.I want to change only
bootstrap.al2.sh
with overrideBootstrapCommand to change kubelet container runtime tocontainerd
. In this case, I cannot set the necessary environment variables(MAX_PODS
,NODE_TAINTS
, etc), making it difficult to start.eksctl version: 0.59.0
eks: 1.21
The text was updated successfully, but these errors were encountered: