Open mohammad-mahmoudian-dynata opened 3 months ago
Looks like you might have RBAC issues: err="error getting node \"ip-10-211-182-17.ec2.internal\": Unauthorized
Can you check that you have the karpenter roles and clusterroles and their bindings
Looks like you might have RBAC issues: err="error getting node "ip-10-211-182-17.ec2.internal": Unauthorized
Can you check that you have the karpenter roles and clusterroles and their bindings
Yes, I checked I have those in place. Please let me know if you need more information
% kubectl roles -n karpenter
NAME CREATED AT
karpenter 2024-07-31T06:04:01Z
$ eks-voice-qa % kubectl rolebindings -n karpenter
NAME ROLE AGE
karpenter Role/karpenter 2d11h
$ eks-voice-qa % kubectl clusterroles | grep karpenter
karpenter 2024-07-31T06:04:01Z
karpenter-admin 2024-07-31T06:04:01Z
karpenter-core 2024-07-31T06:04:01Z
$ eks-voice-qa % kubectl clusterrolebindings | grep karpenter
karpenter ClusterRole/karpenter 2d11h
karpenter-core ClusterRole/karpenter-core 2d11h
--set serviceAccount.annotations."eks\.amazonaws\.com/role-arn"="arn:aws:iam::12222222222:role/eks-qa-karpenter-controller" \
I see you're using IRSA. can you make sure IRSA is set up properly in your account?
It might be worth asking in our karpenter slack channel. Some users might be running into issues like you.
Description
Observed Behavior: I have Karpenter running on EKS and if I don't have a nodegroup, the nodes become Not Ready in k8s and their status become unkonw in EKS AWS console
Expected Behavior: The karpenter needs at least one node group present but I don't node group because I am running the Karpenter and CodeDNS in fargate
Reproduction Steps (Please include YAML): Install the Karpenter using methis in this doc run it without nodegroup
Steps to install/upgrade karpenter
Kubelet logs
Versions:
kubectl version
): 1.29