From 85d0d194fece6767bce7e061f477a5b4379b1956 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Wed, 7 Sep 2016 13:15:42 -0700 Subject: [PATCH] Documentation/bootkube.md: make scp kubeconfig command copy-pastable In the bootkube documentation make the command to copy kubeconfig files to all nodes copy-pastable by adding a for loop. --- Documentation/bootkube.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/bootkube.md b/Documentation/bootkube.md index d45c4c92..ba4eade3 100644 --- a/Documentation/bootkube.md +++ b/Documentation/bootkube.md @@ -56,8 +56,10 @@ We're ready to use [bootkube](https://github.com/coreos/bootkube) to create a te Secure copy the `kubeconfig` to `/etc/kuberentes/kubeconfig` on **every** node (i.e. 172.15.0.21-23 for metal0 or 172.17.0.21-23 for docker0). - scp assets/auth/kubeconfig core@172.15.0.21:/home/core/kubeconfig - ssh core@172.15.0.21 'sudo mv kubeconfig /etc/kubernetes/kubeconfig' + for node in '172.15.0.21' '172.15.0.22' '172.15.0.23'; do + scp assets/auth/kubeconfig core@$node:/home/core/kubeconfig + ssh core@$node 'sudo mv kubeconfig /etc/kubernetes/kubeconfig' + done Secure copy the `bootkube` generated assets to any controller node and run `bootkube-start`.