From 7b183afad4b71f9087e31f8e2d4e3df2eff846de Mon Sep 17 00:00:00 2001 From: Yuexiao Wang <20082558+yuexiao-wang@users.noreply.github.com> Date: Tue, 30 Oct 2018 10:25:23 +0800 Subject: [PATCH] add case with systemd MountFlags for kubeadm troubleshooting (#10742) Signed-off-by: yuexiao-wang --- .../en/docs/setup/independent/troubleshooting-kubeadm.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/en/docs/setup/independent/troubleshooting-kubeadm.md b/content/en/docs/setup/independent/troubleshooting-kubeadm.md index 8a66795d50..1f5878efac 100644 --- a/content/en/docs/setup/independent/troubleshooting-kubeadm.md +++ b/content/en/docs/setup/independent/troubleshooting-kubeadm.md @@ -57,7 +57,7 @@ This may be caused by a number of problems. The most common are: There are two common ways to fix the cgroup driver problem: - 1. Install docker again following instructions + 1. Install Docker again following instructions [here](/docs/setup/independent/install-kubeadm/#installing-docker). 1. Change the kubelet config to match the Docker cgroup driver manually, you can refer to [Configure cgroup driver used by kubelet on Master Node](/docs/setup/independent/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-master-node) @@ -104,6 +104,10 @@ Right after `kubeadm init` there should not be any pods in these states. likely that the Pod Network solution that you installed is somehow broken. You might have to grant it more RBAC privileges or use a newer version. Please file an issue in the Pod Network providers' issue tracker and get the issue triaged there. +- If you install a version of Docker older than 1.12.1, remove the `MountFlags=slave` option + when booting `dockerd` with `systemd` and restart `docker`. You can see the MountFlags in `/usr/lib/systemd/system/docker.service`. + MountFlags can interfere with volumes mounted by Kubernetes, and put the Pods in `CrashLoopBackOff` state. + The error happens when Kubernetes does not find `var/run/secrets/kubernetes.io/serviceaccount` files. ## `coredns` (or `kube-dns`) is stuck in the `Pending` state