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

Allow additional user-data on EKS nodes #69

Closed
berndtj opened this issue Jun 18, 2018 · 9 comments · Fixed by #522
Closed

Allow additional user-data on EKS nodes #69

berndtj opened this issue Jun 18, 2018 · 9 comments · Fixed by #522
Labels
kind/feature New feature or request

Comments

@berndtj
Copy link

berndtj commented Jun 18, 2018

It would be great to be able easily add to the node template user-data. While one could get most of the same functionality with custom AMIs, then you have to maintain AMIs. For instance, I hacked the nodegroup template to add support for insecure registries (deploy pods from a registry deployed within the cluster):

"echo {\\\"insecure-registries\\\": [\\\"$DNS_CLUSTER_IP/8\\\"]} > /etc/docker/daemon.json" , "\n",
"systemctl restart docker", "\n",
@errordeveloper
Copy link
Contributor

I agree, in general we should provide customisation, but I believe this is a special case and we are already discussing this with @jstrachan (see jenkins-x/jx#87).

@berndtj
Copy link
Author

berndtj commented Jun 19, 2018

Awesome @errordeveloper! Let me know if I can help. BTW, I was sitting next to you at the openfaas meetup last week.

@errordeveloper
Copy link
Contributor

@berndtj please feel free to explore this. At the moment we have CloudFormation templates generated with go-bindata and checked-in. I suppose it's be easiest to implement this as parameter in CloudFomation – wdyt? I'm not entirely sure about enabling it by default right now.

@errordeveloper errordeveloper added the kind/feature New feature or request label Jun 22, 2018
@archisgore
Copy link
Contributor

+1 to this. A trivial use-case here is installing amazon-efs-utils on top of the latest AMI. Cutting a custom AMI seems like a LOT of work to have something as simple. I'll take a look at this.

@errordeveloper
Copy link
Contributor

errordeveloper commented Jul 9, 2018 via email

@errordeveloper
Copy link
Contributor

This should get unblocked with #132.

@niranjan94
Copy link
Contributor

niranjan94 commented Apr 3, 2020

@errordeveloper how can I add an additional command (or a set of commands) to be run at instance start for a windows instance part of a windows node group ?

Some uses cases for this would be

  • Setting the instance pagefile size
  • Installing & configuring the cloudwatch agent for instance metrics collection.

If I try preBootstrapCommands, I get

Error: preBootstrapCommands is not supported for WindowsServer2019CoreContainer nodegroups (path=nodeGroups[2].preBootstrapCommands)

@errordeveloper
Copy link
Contributor

@niranjan94 please open another issue, that would be a feature request actually ;)

@niranjan94
Copy link
Contributor

Thanks for your response @errordeveloper
Have opened an issue #2003

Have also submitted a PR for the same.

torredil pushed a commit to torredil/eksctl that referenced this issue May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants