kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
40.73k stars 13.96k forks source link

Cannot distribute the client certificates #718

Open msnrm opened 2 years ago

msnrm commented 2 years ago

Hi,

when running below

for instance in worker-0 worker-1 worker-2; do gcloud compute scp ca.pem ${instance}-key.pem ${instance}.pem ${instance}:~/ done

I am getting:

/usr/bin/scp: Target is not a directory, but more files selected for upload ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255]. /usr/bin/scp: Target is not a directory, but more files selected for upload ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255]. /usr/bin/scp: Target is not a directory, but more files selected for upload ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255].

Can someone please help me with this error?

Thanks