kubectl: Improve default kubectl behavior when it doesn't know what cluster to talk to

At minimum, we need to improve the error message: The connection to the server localhost:8080 was refused - did you specify the right host or port?

We might also want to consider not using localhost as the default, though we want to keep it aligned with our single-node dev cluster plans. kubernetes/kubernetes#24106

cc @kubernetes/kubectl @dlorenc @vishh

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 26 (18 by maintainers)

Commits related to this issue

Most upvoted comments

It’s probably a good time to pull the trigger on adding a better warning here.

/triage accepted /assign @ShivamTyagi12345