~xdavidwu/xdavidwu.link

3c1b2b45af82718dad59b8825ea94574b9b420da — xdavidwu 4 years ago fe0b8d7
healthy-k8s: minor fixes
1 files changed, 4 insertions(+), 2 deletions(-)

M _posts/2020-07-29-healthy-k8s.md
M _posts/2020-07-29-healthy-k8s.md => _posts/2020-07-29-healthy-k8s.md +4 -2
@@ 108,7 108,7 @@ cri-o 用的 storage

```
remap-uids = "0:10000000:65536"
remap-gids = "0:10000000:65536
remap-gids = "0:10000000:65536"
```

### configure network


@@ 184,6 184,8 @@ sudo groupmod -g 10000000 k8s
開始用 group 修權限

```
sudo chown root:k8s /var/lib/kubelet
sudo chmod g+rx /var/lib/kubelet
sudo chown root:k8s /var/lib/kubelet/pods -R
sudo chmod g+s /var/lib/kubelet/pods
```


@@ 199,7 201,7 @@ sudo chown k8s:k8s -R /var/lib/etcd
修 k8s config

```
sudo chown k8s:k8s -R /etc/kubernetes/
sudo chown k8s:k8s -R /etc/kubernetes
```

然後再 bootstrap 一次應該就沒問題了