for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Experimental Kubenetes not able to connect to "server"

Open john3exonets opened this issue 8 years ago • 2 comments

Expected behavior

kubctl commands to work

Actual behavior

kubctl command return errors: $ kubectl get nodes Unable to connect to the server: net/http: TLS handshake timeout

Information

  • Full output of the diagnostics from "Diagnose & Feedback" in the menu
  • A reproducible case if this is a bug, Dockerfiles FTW
  • Page URL if this is a docs issue or the name of a man page

logs: /tmp/422610C4-A97F-48B4-A7D8-D29EF2DEBA97/20180105-132443.tar.gz [OK] db.git [OK] vmnetd [OK] dns [OK] driver.amd64-linux [OK] virtualization VT-X [OK] app [OK] moby [OK] system [OK] moby-syslog [OK] kubernetes [OK] env [OK] virtualization kern.hv_support [OK] slirp [OK] osxfs [OK] moby-console [OK] logs [OK] docker-cli [OK] menubar [OK] disk

Steps to reproduce the behavior

  1. Install Kubernetes
  2. try anything

This is using the latest version that showed up today with this support.

john3exonets avatar Jan 05 '18 19:01 john3exonets

So for those of you who forgot you once ran kubectl for a different deployment long, long, long ago (like me), here is how you fix this issue:

$ kubectl config use-context docker-for-desktop Kubernetes master is running at https://localhost:6443 KubeDNS is running at https://localhost:6443/api/v1/namespaces/kube-system/services/kube-dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. $ kubectl get nodes NAME STATUS ROLES AGE VERSION docker-for-desktop Ready master 32m v1.8.2

john3exonets avatar Jan 05 '18 19:01 john3exonets

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 26 '20 03:06 docker-robott