Merge pull request #5162 from netroby/pr/fix-centos-doc

Fix document style
pull/5273/head
Andrew Chen 2017-09-01 16:44:21 -07:00 committed by GitHub
commit 838312e431
1 changed files with 14 additions and 6 deletions

View File

@ -570,22 +570,30 @@ Another workaround is to overwrite the default `kubeconfig` for the "admin" user
1. If you are using CentOS and encounter difficulty while setting up the master node
verify that your Docker cgroup driver matches the kubelet config:
```
```bash
docker info |grep -i cgroup
cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
```
If the Docker cgroup driver and the kubelet config don't match, change the kubelet config to match the Docker cgroup driver:
If the Docker cgroup driver and the kubelet config don't match, change the kubelet config to match the Docker cgroup driver.
```
update KUBELET_CGROUP_ARGS=--cgroup-driver=systemd to KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs
Update
```bash
KUBELET_CGROUP_ARGS=--cgroup-driver=systemd
```
Then restart kubelet:
To
```bash
KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs
```
Then restart kubelet:
```bash
systemctl daemon-reload
service kubelet restart
systemctl restart kubelet
```
The `kubectl describe pod` or `kubectl logs` commands can help you diagnose errors. For example: