1
votes

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?

1
how did you create the cluster? Is your kubectl configured correctly? - Tummala Dhanvi
I created with aws eks console - HARINI NATHAN
have you configured your kubectl? aws eks --region region-code update-kubeconfig --name cluster_name - Tummala Dhanvi
In worker node? - HARINI NATHAN
yes I have configured - HARINI NATHAN

1 Answers

2
votes

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.