Error there is no need to specify a resource type as a separate argument when passing arguments in resource name form

0 votes
Can anyone help me pls solving an error in k8s?

kubectl get svc —role-arn arn:aws:sts::736087:assumed-role/pod-eks-node-group/i-0f34048c88f
error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. 'kubectl get resource/<resource_name>' instead of 'kubectl get resource resource/<resource_name>'

Can't connect worker nodes please help!
Oct 6, 2020 in Kubernetes by anonymous
• 19,550 points
17,496 views

1 answer to this question.

0 votes

Hi,

You don't need to pass any argument in your command. Just run the below command.

$ kubectl get svc

It will show all the services available on that namespace.

answered Oct 6, 2020 by MD
• 95,460 points