- Newest
- Most votes
- Most comments
When you run "kubectl get nodes" and get "no resources found", it typically means your worker nodes are not successfully joining the EKS cluster. Based on your setup with worker nodes in Casablanca Wavelength and control plane in Paris, there are several potential causes for this issue:
-
Cross-region connectivity issues: Having your worker nodes in Wavelength zones (Casablanca) and your control plane in a different region (Paris) might cause connectivity problems. The worker nodes need to be able to communicate with the control plane endpoint.
-
Bootstrap script execution: While your bootstrap script looks correct, you should verify that it's actually executing successfully on the worker nodes. Check the instance logs in EC2 console or use Systems Manager to access the nodes and check
/var/log/cloud-init-output.logfor any errors during bootstrap. -
IAM authentication: Ensure that the IAM role used by your worker nodes has the necessary permissions to join the cluster. The role ARN in your aws-auth ConfigMap should match exactly with the role used by the worker nodes.
-
Security group configuration: Your security group allows inbound traffic on port 443 from anywhere (0.0.0.0/0), but you might need to ensure that all required ports for kubelet communication are open. The worker nodes need to communicate with the control plane on multiple ports.
-
Network connectivity: Check if there are any network ACLs, route tables, or other network configurations that might be blocking traffic between your Wavelength zone and the region where your control plane is located.
-
kubectl configuration: Verify that your kubectl is properly configured to communicate with your EKS cluster. Run
aws eks update-kubeconfig --name <your-cluster-name> --region <your-region>to ensure your kubeconfig is up to date. -
Authentication issues: Run
aws sts get-caller-identityto verify you're using the correct IAM credentials that have access to the cluster.
To further troubleshoot, check the EC2 instance logs of your worker nodes to see if they're attempting to join the cluster and what errors they might be encountering. Also, verify that your EKS cluster's API server endpoint is accessible from the Wavelength zone.
Sources
Error while creating EKS cluster | AWS re:Post
EKS node creation failed | AWS re:Post
Troubleshoot problems with Amazon EKS clusters and nodes - Amazon EKS
Troubleshot IAM role issues in Amazon EKS | AWS re:Post
answered a year ago
Relevant content
asked a year ago
- AWS OFFICIALUpdated 2 years ago
