From 5fde6f69ba66744bb8afccab1a94cb68c7543a80 Mon Sep 17 00:00:00 2001 From: Li Yi Date: Thu, 2 May 2019 10:49:55 +0800 Subject: [PATCH] Add troubleshooting --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 96fae9c..2b7cc17 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,13 @@ ![k8s](images/k8s.png) +**TIPS**:如果在Kubernetes部署的过程中出现问题,可以通过docker desktop应用日志获得实时日志信息: + +```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" +``` ### Docker Desktop for Windows 开启 Kubernetes @@ -70,13 +77,7 @@ ![k8s](images/k8s_win.png) -**TIPS**:如果想知道Kubernetes部署的过程,可以通过docker desktop应用日志获得实时安装进程信息: - -```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" -``` +**TIPS**:如果在Kubernetes部署的过程中出现问题,可以在 C:\ProgramData\DockerDesktop下的service.txt 查看Docker日志