Hello! i'd like to copy files into the etcd container (pod on master). As you kn . . .

Luca F.:
hello!
i’d like to copy files into the etcd container (pod on master).
As you know, on the etcd image “tar” is uninstalled so the copy command “Kubectl cp …” is not working.
How would you do that?
thanks

unnivkn:
@Luca F. please try this:

unnivkn:
controlplane k get node -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME controlplane Ready master 35m v1.19.0 172.17.0.8 &lt;none&gt; Ubuntu 18.04.5 LTS 4.15.0-122-generic <docker://19.3.13> node01 Ready &lt;none&gt; 34m v1.19.0 172.17.0.9 &lt;none&gt; Ubuntu 18.04.5 LTS 4.15.0-122-generic <docker://19.3.13> controlplane
controlplane ls -ltr &gt; testfile controlplane
controlplane ls -l testfile controlplane
controlplane controlplane scp -p /root/testfile root@172.17.0.9:/root
testfile 100% 266 359.4KB/s 00:00
controlplane controlplane ssh node01
node01 pwd /root node01
node01 ls -ltr testfile -rw-r--r-- 1 root root 266 May 24 15:17 testfile node01