Coder Social home page Coder Social logo

Comments (8)

 avatar commented on May 12, 2024 1

我遇到的问题跟你一样,目前没办法解决,想着是不是要把docker降级版本为2.0.0.2

目前我通过一下方法解决
1.日志提示 "Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF 一般是防火墙问题
在window入站规则钟找到VPNkit 全部设置为允许
2.日志钟提示没有权限创建.kube文件 先退出然后以管理员身份运行即可
最后在日志看到 0/3 system pod running 等待几分钟即可完美运行。

from k8s-for-docker-desktop.

denverdino avatar denverdino commented on May 12, 2024

参见 #23
Mac查看Docker Desktop日志

pred='process matches ".*(ocker|vpnkit).*"
  || (process in {"taskgated-helper", "launchservicesd", "kernel"} && eventMessage contains[c] "docker")'
/usr/bin/log stream --style syslog --level=debug --color=always --predicate "$pred"

如果是windows看日志的话直接在C:\ProgramData\DockerDesktop下的service.txt打开就行了

from k8s-for-docker-desktop.

shanquan avatar shanquan commented on May 12, 2024

设置了网络代理后遇到同样的问题,修改为通过wifi连网后,重启docker desktop就没有"Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"的报错了,在mac上kubernetes状态是is running,虽然window 10上还是is starting,但是运行kubectl cluster-info及后面的命令都是正常的。再切换回之前的网络代理也正常,但是下次重启docker desktop时也需要先关掉代理。

from k8s-for-docker-desktop.

liontrix avatar liontrix commented on May 12, 2024

设置了网络代理后遇到同样的问题,修改为通过wifi连网后,重启docker desktop就没有"Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"的报错了,在mac上kubernetes状态是is running,虽然window 10上还是is starting,但是运行kubectl cluster-info及后面的命令都是正常的。再切换回之前的网络代理也正常,但是下次重启docker desktop时也需要先关掉代理。

似乎我遇到的问题和网络没有关系,我没有设置代理上网;kubectl的命令虽然可以用,但是服务不正常,运行如下

PS C:\Users\kiopj> kubectl cluster-info
Kubernetes master is running at https://localhost:6445

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Unable to connect to the server: EOF
PS C:\Users\kiopj> kubectl cluster-info dump
Unable to connect to the server: EOF
PS C:\Users\kiopj>

from k8s-for-docker-desktop.

liontrix avatar liontrix commented on May 12, 2024

参见 #23
Mac查看Docker Desktop日志

pred='process matches ".*(ocker|vpnkit).*"
  || (process in {"taskgated-helper", "launchservicesd", "kernel"} && eventMessage contains[c] "docker")'
/usr/bin/log stream --style syslog --level=debug --color=always --predicate "$pred"

如果是windows看日志的话直接在C:\ProgramData\DockerDesktop下的service.txt打开就行了

您好,我查看了#23的解决方式,删除~/.kube/文件夹,但是问题没有解决;log报错如下

[23:39:41.385][ApiProxy       ][Info   ] time="2019-03-26T23:39:41+08:00" msg="Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"
[23:39:42.384][ApiProxy       ][Info   ] time="2019-03-26T23:39:42+08:00" msg="Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"
[23:39:43.389][ApiProxy       ][Info   ] time="2019-03-26T23:39:43+08:00" msg="Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"
[23:39:44.389][ApiProxy       ][Info   ] time="2019-03-26T23:39:44+08:00" msg="Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"
[23:39:45.387][ApiProxy       ][Info   ] time="2019-03-26T23:39:45+08:00" msg="Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"
[23:39:46.389][ApiProxy       ][Info   ] time="2019-03-26T23:39:46+08:00" msg="Cannot list nodes: Get https://localhost:6445/api/v1/nodes: EOF"

似乎是端口策略问题,但是我还没有找到解决方案

from k8s-for-docker-desktop.

ShaoHans avatar ShaoHans commented on May 12, 2024

我遇到的问题跟你一样,目前没办法解决,想着是不是要把docker降级版本为2.0.0.2

from k8s-for-docker-desktop.

liontrix avatar liontrix commented on May 12, 2024

更换为2.0.2版本docker for windows,branch v2.0.0.2后问题解决

from k8s-for-docker-desktop.

wuwenrui avatar wuwenrui commented on May 12, 2024

我的是,版本问题,按照说明搭配对应的k8s版本就好。去阿里云控制台查看最新的镜像加速节点地址(网上好多的地址都不能用):https://qj8ppthp.mirror.aliyuncs.com

from k8s-for-docker-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.