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,873 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

Related Questions In Kubernetes

0 votes
1 answer

Error saying "No apt package "kubeadm", but there is a snap with that name. Try "snap install kubeadm""

After adding gpg key and repositories, you ...READ MORE

answered Apr 16, 2022 in Kubernetes by Prashanth5429

edited Mar 5, 2025 12,063 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
18,034 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,340 points
2,265 views
0 votes
1 answer
0 votes
1 answer
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