Problem scenario
You are trying to use Kubernetes in AWS. You have installed kubectl and you run this command:
kubectl get svc
You receive this: ‘error: the server doesn’t have a resource type “svc”‘
You try again with a more verbose output. You run this command:
kubectl get svc -v=8
In the output you see messages like this: “Response Status: 401 Unauthorized in 73 milliseconds”
What should you do to use kubectl with AWS?
…