mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 09:48:57 +03:00
fix: mkdir 'File exists' @ page 5
Avoid following error
cannot create directory '/var/lib/{kube-proxy,kubelet}': File exists
It doesn't cause an error, but it's better to avoid the warning
This commit is contained in:
committed by
GitHub
parent
5a325c23d7
commit
1794ddf184
@@ -188,7 +188,7 @@ Copy the `kubelet` and `kube-proxy` kubeconfig files to the node-0 instance:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
for host in node-0 node-1; do
|
for host in node-0 node-1; do
|
||||||
ssh root@$host "mkdir /var/lib/{kube-proxy,kubelet}"
|
ssh root@$host "mkdir -p /var/lib/{kube-proxy,kubelet}"
|
||||||
|
|
||||||
scp kube-proxy.kubeconfig \
|
scp kube-proxy.kubeconfig \
|
||||||
root@$host:/var/lib/kube-proxy/kubeconfig \
|
root@$host:/var/lib/kube-proxy/kubeconfig \
|
||||||
|
|||||||
Reference in New Issue
Block a user