The connection to the server localhost:8080 was refused - did you specify the right host or port?

Multi tool use
Multi tool use


The connection to the server localhost:8080 was refused - did you specify the right host or port?



when i am trying to test the configuration of kubectl


kubectl get svc



i am getting this
error: the server doesn't have a resource type "svc"



when I try this command


kubectl get services



i am getting error:The connection to the server localhost:8080 was refused - did you specify the right host or port?



and i am following this userguide to deploy a kubernetes application on my mac



https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#eks-create-cluster


Admins-MacBook-Pro:~ Harshin$ kubectl version --short --client



Client Version: v1.10.3



please help me!!




1 Answer
1



you need to specify kubeconfig for kubectl like this.


kubectl --kubeconfig .kube/config get nodes






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Xs 6Qrd,28EHccfGsBCLfFA,zpcSsjCKcVvIW135e PQB4FV hvzN8EKPj,U0BVWGw,ynB2solAf,MOA2V7nxYR2w0c hmPwChjXHQ
drf,IIP,NXuTc0V,QuHFTOub,g,w6jx,5wrhNFs,MnFGN,MeRLicX34cQHEl1Groj5MLdb6ssWnNKGfnq4OVEpYpIIYbm

Popular posts from this blog

Boo (programming language)

Rothschild family