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,610 points
14,097 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,440 points

Related Questions In Kubernetes

+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
14,494 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 5,957 views
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