Comments (8)
我遇到的问题跟你一样,目前没办法解决,想着是不是要把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.
参见 #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.
设置了网络代理后遇到同样的问题,修改为通过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.
设置了网络代理后遇到同样的问题,修改为通过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.
参见 #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.
我遇到的问题跟你一样,目前没办法解决,想着是不是要把docker降级版本为2.0.0.2
from k8s-for-docker-desktop.
更换为2.0.2版本docker for windows,branch v2.0.0.2后问题解决
from k8s-for-docker-desktop.
我的是,版本问题,按照说明搭配对应的k8s版本就好。去阿里云控制台查看最新的镜像加速节点地址(网上好多的地址都不能用):https://qj8ppthp.mirror.aliyuncs.com
from k8s-for-docker-desktop.
Related Issues (20)
- 1.24.1 和 1.24.0 通用么? HOT 2
- 问一下,没有v.1.24.2分支吗? HOT 9
- k8s failed start. HOT 4
- not exits v1.25.0 branch HOT 1
- Dashboad startup failure after restart k8s, dashboard 503 HOT 1
- not exits v1.25.0 branch HOT 3
- 现在的版本是v1.25.2 HOT 3
- k8s failed start
- k8s failed to start HOT 2
- 没有v1.25.2 HOT 2
- 启动失败,报连接"http://ipc/kubernetes/start"超时 HOT 3
- error: pathspec 'v1.25.2' did not match any file(s) known to git HOT 2
- Consider switching image src to registry.k8s.io HOT 1
- v1.27.2没有了
- v1.27.2 branch 找不到了,无法切换 HOT 1
- windows docker desktop 的k8s想使用nfs做持久化存储,有实现的吗?
- docker-desktop节点中用户不能主动创建文件或文件夹(Read-only file system)
- 支持v1.28.2版本 HOT 2
- 在一个 pod 中, 无法 ping 通同一个命名空间下的 service 的 cluster IP
- 支持v1.29.1版本 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-for-docker-desktop.