-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bug(AL2023): Pre-nodeadm script doesn't run and post-nodeadm prevents nodes from joining #2123
Comments
Hi @darox, sorry not quite groking the pre/post script setup. If you're relying on cloud-init to execute user data scripts then everything will run before nodeadm is completed. The bootstrap is split into 2 parts so it looks something like Have you checked the logs for those services via |
@ndbaker1 thank you for having a look. Yes, the output for
In this case I specified a
|
that service not completing would explain the nodes aren't joining to the cluster, so based on the dependency failure you should also pull up |
Facing similar issues but my approach is different #2128 |
@darox Where you able to fix the issue? |
@darox can you check |
Facing the same issue after building CIS hardened AMIs.
as requested @cartermckinnon, this is the error
Checking permissions for /usr/bin/nodeadm
Checking if the config is valid:
Trying to start nodeadm
Checking kubelet logs:
It seems containerd is having issues to start:
|
Sorry my issue is related to |
I am running into a similar issue. Running The relevant line would appear to be: Which leads to: However, And grabbing the user data with `MIME-Version: 1.0 --// -- If I dump the user data into a local YAML file and run |
hi @bluerockjp, the shape of your like you mentioned, this wont work: MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="//"
--//
Content-Type: application/node.eks.aws
---
APIVersion: node.eks.aws/v1alpha1
Kind: NodeConfig
Spec:
Cluster:
Name: foo
--//--
however if you fix-up the casing and the indentation change you'll have a valid name (and will move on to validating the rest of the fields, which is now the api server endpoint). -Spec:
-Cluster:
-Name: demo-24-52-0_cluster
+spec:
+ cluster:
+ name: foo
Take a look out our docs for more examples of valid NodeConfigs: https://awslabs.github.io/amazon-eks-ami/nodeadm/ It's true that the |
@ndbaker1 Indentation must have gotten messed up during copy/paste but casing was definitely wrong. Changed it per your guidance and the issue is resolved. Thank you! |
What happened:
I have to run the following script at boot to configure the interfaces for XDP, I don't matter if it's pre or post nodeadm.
With post-noeadm
In this case nodes don't join the cluster.
The status of Kubelet:
Kubelet service logs:
The user data is as follows:
The script ran, because we can see the changed MTU:
With pre-noeadm
In this case nodes join the cluster, but the interface MTU is still the same:
What you expected to happen:
I expect that post or pre scripts run successfully and the nodes can join the cluster.
How to reproduce it (as minimally and precisely as possible):
Define some pre and post nodeadm scripts and check if scripts ran and if nodes joined the cluster.
Environment: EKS
The text was updated successfully, but these errors were encountered: