powershell to eks cluster

+4 votes
Getting below error

PS C:\kubectl> kubectl apply -f aws-auth-cm.yaml
error: unable to recognize "aws-auth-cm.yaml": Unauthorized
PS C:\kubectl>
Dec 18, 2019 in Kubernetes by Kamaldeep
• 180 points
1,633 views
If you have created the cluster along with a role( using -r flag) , there might be some issue with the permissions assigned to the role. Ensure you have adequate permissions associated with that role. That Should resolve the issue.
Hope this helps!
What all permissions does your role have?

Unauthorized in AWS is always permission issue wrt to the role. Check that and you should be good to go.
Can you please share your yaml file?

Thank you

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Kubernetes

0 votes
1 answer

Unable to run Kubernetes on rancher cluster

switch Docker to 1.12.x; Kubernetes doesn't support ...READ MORE

answered Aug 28, 2018 in Kubernetes by Kalgi
• 52,350 points
1,346 views
0 votes
1 answer

Failed to create cluster-role

To overcome this, you must grant your ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 52,350 points
743 views
0 votes
2 answers
0 votes
1 answer

How to build Start vNext from Powershell and fetch artifacts

TFS 2015 comes with the new REST API, ...READ MORE

answered Oct 17, 2018 in Kubernetes by lina
• 8,220 points
819 views
0 votes
1 answer

Trying to create Kubernetes cluster inside existing vpc in aws

You can add this ENV variable  export VPC_ID=vpc-YOURID READ MORE

answered Oct 17, 2018 in Kubernetes by Kalgi
• 52,350 points
779 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP