From 450709e9963d5186dc5ff10bc38f2db54eb510e5 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 27 Mar 2017 18:02:18 +0200 Subject: [PATCH] fix formatting of bootstrap token generation --- docs/03-auth-configs.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/03-auth-configs.md b/docs/03-auth-configs.md index c23aff6..e9310a5 100644 --- a/docs/03-auth-configs.md +++ b/docs/03-auth-configs.md @@ -38,7 +38,9 @@ This section will walk you through the creation of a TLS bootstrap token that wi Generate a token: +``` BOOTSTRAP_TOKEN=$(head -c 16 /dev/urandom | od -An -t x | tr -d ' ') +``` Generate a token file: @@ -135,4 +137,4 @@ 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}:~/ done -``` \ No newline at end of file +```