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 ```