From 820fd2e74c709a2f76c8ee1d90c03a180e68b304 Mon Sep 17 00:00:00 2001 From: Fernando Sanchez Date: Wed, 21 Jun 2017 11:18:15 -0400 Subject: [PATCH] update 'scp' to 'copy-files' gcloud --version Google Cloud SDK 154.0.1 app-engine-python 1.9.52 bq 2.0.24 cloud-datastore-emulator 1.2.1 core 2017.05.04 docker-credential-gcr gcloud gsutil 4.25 kubectl $ for host in worker0 worker1 worker2; do > gcloud compute scp ca.pem kube-proxy.pem kube-proxy-key.pem ${host}:~/ > done ERROR: (gcloud.compute) Invalid choice: 'scp'. for host in worker0 worker1 worker2; do gcloud compute copy-files ca.pem kube-proxy.pem kube-proxy-key.pem ${host}:~/; done Warning: Permanently added 'compute.6461459711323000154' (ECDSA) to the list of known hosts. ca.pem 100% 1367 1.3KB/s 00:00 kube-proxy.pem 100% 1428 1.4KB/s 00:00 kube-proxy-key.pem 100% 1679 1.6KB/s 00:00 Warning: Permanently added 'compute.601335813592567078' (ECDSA) to the list of known hosts. ca.pem 100% 1367 1.3KB/s 00:00 kube-proxy.pem 100% 1428 1.4KB/s 00:00 kube-proxy-key.pem 100% 1679 1.6KB/s 00:00 Warning: Permanently added 'compute.1617219287039593734' (ECDSA) to the list of known hosts. ca.pem 100% 1367 1.3KB/s 00:00 kube-proxy.pem 100% 1428 1.4KB/s 00:00 kube-proxy-key.pem 100% 1679 1.6KB/s 00:00 --- docs/02-certificate-authority.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-certificate-authority.md b/docs/02-certificate-authority.md index 09609b8..d8c0889 100644 --- a/docs/02-certificate-authority.md +++ b/docs/02-certificate-authority.md @@ -271,12 +271,12 @@ The following commands will copy the TLS certificates and keys to each Kubernete ``` for host in worker0 worker1 worker2; do - gcloud compute scp ca.pem kube-proxy.pem kube-proxy-key.pem ${host}:~/ + gcloud compute copy-files ca.pem kube-proxy.pem kube-proxy-key.pem ${host}:~/ done ``` ``` for host in controller0 controller1 controller2; do - gcloud compute scp ca.pem ca-key.pem kubernetes-key.pem kubernetes.pem ${host}:~/ + gcloud compute copy-files ca.pem ca-key.pem kubernetes-key.pem kubernetes.pem ${host}:~/ done ```