Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freshly installed kubectl on Windows refuses to run simple commands #45163

Closed
mub opened this issue May 1, 2017 · 1 comment
Closed

Freshly installed kubectl on Windows refuses to run simple commands #45163

mub opened this issue May 1, 2017 · 1 comment

Comments

@mub
Copy link

mub commented May 1, 2017

Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): a bug report could be classified as request for help, but primarily this is a bug report because this product does not behave as documented.

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
No connection could be made because the target machine actively refused it

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version): 1.6.2

Environment:

  • Cloud provider or hardware configuration: gcloud
  • OS (e.g. from /etc/os-release): Widows 10
  • Kernel (e.g. uname -a): N/A
  • Install tools: gcloud, kubectl
  • Others:

What happened:

  • Freshly installed gcloud and kubectl running gcloud components install kubectl, all successful, no errors, no warnings
  • Ran gcloud init and gcloud auth login - success
  • Ran kubectl get pods, got this error, quote:
Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

In fact, even kubectl version shows the same error

What you expected to happen:

Commands running according to their --help as documented. I.e. kubectl get pod should show me my pods not the error.

How to reproduce it (as minimally and precisely as possible):

As described above: install Google Cloud SDK on a Windows 10 machine, and further on according to the scenario described in the What happened section above↑

Anything else we need to know:

Just ask.

@mub
Copy link
Author

mub commented May 3, 2017

Figured it out: need to run gcloud container clusters get-credentials cluster-id before running kubectl

@mub mub closed this as completed May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant