From fdba7c375d457a2095888b7aee86ae6fbdee7e57 Mon Sep 17 00:00:00 2001 From: mazyi <6824119+mazyi@users.noreply.github.com> Date: Sat, 3 Apr 2021 00:52:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=ADpki=E6=96=87=E4=BB=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=20=E5=92=8C=20Kubernetes=E6=97=A5=E5=BF=97=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5eb660d..55afd8e 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ pred='process matches ".*(ocker|vpnkit).*" 在Windows上: -如果在Kubernetes部署的过程中出现问题,可以在 C:\ProgramData\DockerDesktop下的service.txt 查看Docker日志; +如果在Kubernetes部署的过程中出现问题,可以在 C:\ProgramData\DockerDesktop下的service.txt 查看Docker日志, 在 C:\Users\yourUserName\AppData\Local\Docker下的log.txt 查看Kubernetes日志; **问题诊断**: @@ -84,7 +84,7 @@ pred='process matches ".*(ocker|vpnkit).*" * [Issue 3769(comment)](https://github.com/docker/for-win/issues/3769#issuecomment-486046718) 或 [Issue 3649(comment)](https://github.com/docker/for-mac/issues/3649#issuecomment-497441158) * 在macOS上面,执行 ```rm -fr '~/Library/Group\ Containers/group.com.docker/pki'``` - * 在Windows上面删除 'C:\ProgramData\DockerDesktop\pki' 目录 + * 在Windows上面删除 'C:\ProgramData\DockerDesktop\pki' 目录 和 'C:\Users\yourUserName\AppData\Local\Docker\pki' 目录 * [Issue 1962(comment)](https://github.com/docker/for-win/issues/1962#issuecomment-431091114) ### 配置 Kubernetes From 995a99d19ba3c8136cc736702447df9715870185 Mon Sep 17 00:00:00 2001 From: mazyi <6824119+mazyi@users.noreply.github.com> Date: Sat, 3 Apr 2021 00:59:44 +0800 Subject: [PATCH 2/3] add tips and problem diagnosis in English README --- README_en.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README_en.md b/README_en.md index 98e0f8d..0a61444 100644 --- a/README_en.md +++ b/README_en.md @@ -55,6 +55,31 @@ Enable Kubernetes, and wait a while for Kubernetes is running ![k8s](images/k8s.png) +**TIPS**: + +On Mac: + +If facing problems when deploy Kubernetes, you can check ocker desktop application's log to get realtime log: + +```bash +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" +``` + +On Windows: + +If facing problems when deploy Kubernetes, you can check docker log in C:\ProgramData\DockerDesktop\service.txt, check Kuberneteslog in C:\Users\yourUserName\AppData\Local\Docker\log.txt + + +**problem diagnosis**: + +If you see Kubernetes stuck in Starting, please refer: + +* [Issue 3769(comment)](https://github.com/docker/for-win/issues/3769#issuecomment-486046718) or [Issue 3649(comment)](https://github.com/docker/for-mac/issues/3649#issuecomment-497441158) + * On MacOS, execute ```rm -fr '~/Library/Group\ Containers/group.com.docker/pki'``` + * On Windows, delete folders 'C:\ProgramData\DockerDesktop\pki' and 'C:\Users\yourUserName\AppData\Local\Docker\pki' +* [Issue 1962(comment)](https://github.com/docker/for-win/issues/1962#issuecomment-431091114) ### Config Kubernetes From 89a52420ccd605d439deb52ac625ad38cffc28bd Mon Sep 17 00:00:00 2001 From: mazyi <6824119+mazyi@users.noreply.github.com> Date: Sat, 3 Apr 2021 01:00:29 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8F=A5=E5=B0=BE?= =?UTF-8?q?=E5=88=86=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 55afd8e..ea45fae 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ pred='process matches ".*(ocker|vpnkit).*" 在Windows上: -如果在Kubernetes部署的过程中出现问题,可以在 C:\ProgramData\DockerDesktop下的service.txt 查看Docker日志, 在 C:\Users\yourUserName\AppData\Local\Docker下的log.txt 查看Kubernetes日志; +如果在Kubernetes部署的过程中出现问题,可以在 C:\ProgramData\DockerDesktop下的service.txt 查看Docker日志, 在 C:\Users\yourUserName\AppData\Local\Docker下的log.txt 查看Kubernetes日志 **问题诊断**: