-
Notifications
You must be signed in to change notification settings - Fork 979
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
Karpenter doesn't create Nodes #1225
Comments
Currently, only well known labels are supported via requirements. For custom labels, use the explicit labels syntax:
I'm surprised our validation logic allowed this. @felix-zhe-huang can you take a look? |
@ellistarn Thank you.
New nodes are trying to come up every ~6min Can you please suggest? |
Are you following the getting started guide? There are many reasons the node can't connect.
Try logging into the node with
and then reading the kubelet logs with
|
@Izvi-digibank check your subnet selectors. I had a similar issue, it was caused by nodes binding to public subnet instead of private. |
@ellistarn I am attaching all the relevant configurations, all followed by the documentation. @alekc subnet selector is 100% private. Would appreciate your further attention to the following details; Instance profile has the right permissions (Policy is "AmazonSSMManagedInstanceCore"): AmazonSSMManagedInstanceCore policy :
KarpenterNodeInstanceProfile-features Trust relationship:
KarpenterController IAM Role policy:
KarpenterController Trust Relationship:
Karpenter 0.5.3 helm chart values file:
Also, I'd expect to see logs while trying to create the node. I get |
Can you connect using |
@ellistarn No logs visible :( |
Your instance profile needs the 4 policies:
|
Thanks, added those policies. In my opinion it's not clear enough in the documentation, I'd suggest en edit. New nodes is still in unknown state, however I was able to get some Kubelet logs:
@ellistarn Any advise? |
@Izvi-digibank I do not see
(check the docs https://karpenter.sh/v0.5.6/getting-started-with-terraform/#install-karpenter-helm-chart) |
@alekc I'm using v0.5.3 https://karpenter.sh/v0.5.3/getting-started-with-terraform/ Edit: I upgraded to v0.5.6, added the value of Are my Trust relationships looks okay? for both KarpenterController and KarpenterNodeInstanceProfile-features? |
Got some new logs from Kubelet. |
Your node can't communicate with the API Server. Here's an example of my aws-auth configmap
In the future, I highly recommend following or directly translating one of the guides. |
Your'e correct, apparently my aws-auth has not got updated. closing this thread. Thanks. |
@ellistarn @felix-zhe-huang I encounter the same error, could you please take a look? #1683 |
That was my problem too. Removing the discovery tag from public subnets and then deleting the stuck nodeclaim and instance rapidly resolved the issue. |
Installed Karpenter following the documentation. Created the following provisioner:
The resource I am trying to match with the provisioner above is:
The error I get:
2022-01-26T16:07:43.841Z DEBUG controller.selection Could not schedule pod, matched 0/1 provisioners, tried provisioner/provisioner-test: invalid nodeSelector "dwh", [yes-dwh] not in [] {"commit": "5047f3c", "pod": "dwh-dev/karpenter-test-4vgnb"}
Would appreciate your assistance on this issue. Thanks in advance.
The text was updated successfully, but these errors were encountered: