Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EKS Kubernetes cannot list resource "namespaces" in API group "" at the cluster scope

I have created kubernetes cluster using eks. Iam unable to create pod in worker node it showing some forbidden error (rbac). while exploring I came to know that we have to change some authentication mode configuration in kube api server but in eks we can't get master config I think So How to resolve this can someone help?

like image 484
HARINI NATHAN Avatar asked Nov 26 '25 22:11

HARINI NATHAN


1 Answers

awscli and kubectl wasn't configured correctly

configuring awscli by running the command aws configure and then configuring kubectl by the command aws eks --region region-code update-kubeconfig --name cluster_name fixed the issue.

like image 177
Tummala Dhanvi Avatar answered Nov 28 '25 15:11

Tummala Dhanvi