From beb3023ecb68d297a781cd1c09a925df4e13bac2 Mon Sep 17 00:00:00 2001 From: cifranix Date: Wed, 22 Jan 2020 09:30:19 -0800 Subject: [PATCH] Update 05-kubernetes-configuration-files.md condensing for statements for controller and workers. --- docs/05-kubernetes-configuration-files.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/05-kubernetes-configuration-files.md b/docs/05-kubernetes-configuration-files.md index 7275597..45111c0 100644 --- a/docs/05-kubernetes-configuration-files.md +++ b/docs/05-kubernetes-configuration-files.md @@ -27,7 +27,7 @@ When generating kubeconfig files for Kubelets the client certificate matching th Generate a kubeconfig file for each worker node: ``` -for instance in worker-0 worker-1 worker-2; do +for instance in worker-{0..2}; do kubectl config set-cluster kubernetes-the-hard-way \ --certificate-authority=ca.pem \ --embed-certs=true \ @@ -198,7 +198,7 @@ admin.kubeconfig Copy the appropriate `kubelet` and `kube-proxy` kubeconfig files to each worker instance: ``` -for instance in worker-0 worker-1 worker-2; do +for instance in worker-{0..2}; do gcloud compute scp ${instance}.kubeconfig kube-proxy.kubeconfig ${instance}:~/ done ``` @@ -206,7 +206,7 @@ done Copy the appropriate `kube-controller-manager` and `kube-scheduler` kubeconfig files to each controller instance: ``` -for instance in controller-0 controller-1 controller-2; do +for instance in controller-{0..2}; do gcloud compute scp admin.kubeconfig kube-controller-manager.kubeconfig kube-scheduler.kubeconfig ${instance}:~/ done ```