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 inject variable determined at runtime to nodeadm userdata? #103

Open
rishabhjain62 opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@rishabhjain62
Copy link

Hi,

We need to assign instance life cycle as node label to support some functionality. Earlier with bootstrap.sh this method used to work - --kubelet-extra-args "--node-labels=lifecycle=$(curl -s http://169.254.169.254/latest/meta-data/instance-life-cycle),worker_type=application"

But with nodeadm, I could not find reference to make it work.

`MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="BOUNDARY"

--BOUNDARY
Content-Type: application/node.eks.aws


apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
spec:
cluster:
name:
apiServerEndpoint:
certificateAuthority:
cidr: 10.1.0.0/16

--BOUNDARY
Content-Type: application/node.eks.aws


apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
spec:
kubelet:
config:
shutdownGracePeriod: 30s
featureGates:
DisableKubeletCloudCredentialProviders: true
flags:
- --node-labels=lifecycle=$(curl -s http://169.254.169.254/latest/meta-data/instance-life-cycle),worker_type=application

--BOUNDARY--`

@rishabhjain62 rishabhjain62 changed the title Can inject variable determined at runtime to nodeadm config? How to inject variable determined at runtime to nodeadm userdata? Nov 13, 2024
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

1 participant