Error: mkdir: cannot create directory ‘/var/lib/kubelet’

Error:
mkdir: cannot create directory ‘/var/lib/kubelet’

It has been created in the previous section:
https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/04-certificate-authority.md#distribute-the-client-and-server-certificates
This commit is contained in:
Shubin(Stan) Peng
2024-04-13 23:36:14 +10:00
committed by GitHub
parent a9cb5f7ba5
commit 003572d72b

View File

@@ -188,7 +188,7 @@ Copy the `kubelet` and `kube-proxy` kubeconfig files to the node-0 instance:
```bash
for host in node-0 node-1; do
ssh root@$host "mkdir /var/lib/{kube-proxy,kubelet}"
ssh root@$host "mkdir /var/lib/kube-proxy"
scp kube-proxy.kubeconfig \
root@$host:/var/lib/kube-proxy/kubeconfig \