powershell to eks cluster

+3 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
• 150 points
205 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
• 51,850 points
302 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
• 51,850 points
89 views
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,200 points
132 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
• 51,850 points
175 views