From 2983b28f13b294c6422a5600bb6f14142f5e7a26 Mon Sep 17 00:00:00 2001 From: Michael McClanahan Date: Tue, 30 May 2017 13:47:24 -0500 Subject: [PATCH] Use gcloud compute scp instead of copy-files --- docs/02-certificate-authority.md | 8 ++++---- docs/03-auth-configs.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/02-certificate-authority.md b/docs/02-certificate-authority.md index 975c200..09609b8 100644 --- a/docs/02-certificate-authority.md +++ b/docs/02-certificate-authority.md @@ -267,16 +267,16 @@ kubernetes.pem Set the list of Kubernetes hosts where the certs should be copied to: -The following commands will copy the TLS certificates and keys to each Kubernetes host using the `gcloud compute copy-files` command. +The following commands will copy the TLS certificates and keys to each Kubernetes host using the `gcloud compute scp` command. ``` for host in worker0 worker1 worker2; do - gcloud compute copy-files ca.pem kube-proxy.pem kube-proxy-key.pem ${host}:~/ + gcloud compute scp ca.pem kube-proxy.pem kube-proxy-key.pem ${host}:~/ done ``` ``` for host in controller0 controller1 controller2; do - gcloud compute copy-files ca.pem ca-key.pem kubernetes-key.pem kubernetes.pem ${host}:~/ + gcloud compute scp ca.pem ca-key.pem kubernetes-key.pem kubernetes.pem ${host}:~/ done -``` \ No newline at end of file +``` diff --git a/docs/03-auth-configs.md b/docs/03-auth-configs.md index ee85c37..96338c3 100644 --- a/docs/03-auth-configs.md +++ b/docs/03-auth-configs.md @@ -34,7 +34,7 @@ The other components, mainly the `scheduler` and `controller manager`, access th ### Create the TLS Bootstrap Token -This section will walk you through the creation of a TLS bootstrap token that will be used to [bootstrap TLS client certificates for kubelets](https://kubernetes.io/docs/admin/kubelet-tls-bootstrapping/). +This section will walk you through the creation of a TLS bootstrap token that will be used to [bootstrap TLS client certificates for kubelets](https://kubernetes.io/docs/admin/kubelet-tls-bootstrapping/). Generate a token: @@ -54,7 +54,7 @@ Distribute the bootstrap token file to each controller node: ``` for host in controller0 controller1 controller2; do - gcloud compute copy-files token.csv ${host}:~/ + gcloud compute scp token.csv ${host}:~/ done ``` @@ -135,6 +135,6 @@ kubectl config use-context default --kubeconfig=kube-proxy.kubeconfig ``` for host in worker0 worker1 worker2; do - gcloud compute copy-files bootstrap.kubeconfig kube-proxy.kubeconfig ${host}:~/ + gcloud compute scp bootstrap.kubeconfig kube-proxy.kubeconfig ${host}:~/ done ```