-
Notifications
You must be signed in to change notification settings - Fork 501
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 pin a version of the EKS AMI #1607
Comments
cc @aylei @DanielZhangQD do you have any idea? |
From the releases https://github.com/awslabs/amazon-eks-ami/releases, I think it should be the |
Changes to the AMI version only applies to newly launched nodes. I wanted to scale up TiKV, so I added a new node, and the new TiKV instance couldn’t start |
@mightyguava We have set the ulimits in userdata.sh https://github.com/pingcap/tidb-operator/blob/v1.0.6/deploy/modules/aws/tidb-cluster/templates/userdata.sh.tpl, do you mean that the ulimits settings do not take effect with the new AMI? |
I mean that every time I run I added this to my module declaration to pin the AMI.
The |
@mightyguava OK, Thanks for the feedback. |
Sure. All I was looking for from this ticket was instructions for how to pin the version. It’d be really useful if there was a link in the comments, that’s all. |
@mightyguava Thanks for the clarification, #1903 add the link. |
We used the terraform modules to provision some EKS worker nodes a bit over a month ago. Recently I ran terraform again with no changes, but terraform wanted changes to the launch configuration. It's due to the use of
most_recent = true
here: https://github.com/pingcap/tidb-operator/blob/master/deploy/modules/aws/tidb-cluster/data.tf#L7This caused issues because the new version of the AMI lowered ulimits, causing TiKV to stop working. This has already been fixed master here. So it was kind of a pain to track down.
It'd be nice to be able to pin a version. I think by setting
var.worker_ami_name_filter
I should be able to pin a version? But I haven't been able to figure out what exactly I'm supposed to put there. Where do I get this version from? The var help says:I think it's supposed to be the "Packer version" here https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html. It'd be nice if the docs were more clear.
The text was updated successfully, but these errors were encountered: