diff --git a/docs/10-tls-bootstrapping-kubernetes-workers.md b/docs/10-tls-bootstrapping-kubernetes-workers.md index 2f2e1d1..6b1387c 100644 --- a/docs/10-tls-bootstrapping-kubernetes-workers.md +++ b/docs/10-tls-bootstrapping-kubernetes-workers.md @@ -40,7 +40,7 @@ So let's get started! Copy the ca certificate to the worker node: ``` -scp ca.crt worker-2:~/ +master-1$ scp ca.crt worker-2:~/ ``` ## Step 1 Configure the Binaries on the Worker node @@ -48,7 +48,7 @@ scp ca.crt worker-2:~/ ### Download and Install Worker Binaries ``` -wget -q --show-progress --https-only --timestamping \ +worker-2$ wget -q --show-progress --https-only --timestamping \ https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl \ https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kube-proxy \ https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubelet @@ -59,7 +59,7 @@ Reference: https://kubernetes.io/docs/setup/release/#node-binaries Create the installation directories: ``` -sudo mkdir -p \ +worker-2$ sudo mkdir -p \ /etc/cni/net.d \ /opt/cni/bin \ /var/lib/kubelet \ @@ -78,7 +78,7 @@ Install the worker binaries: ``` ### Move the ca certificate -`sudo mv ca.crt /var/lib/kubernetes/` +`worker-2$ sudo mv ca.crt /var/lib/kubernetes/` # Step 1 Create the Boostrap Token to be used by Nodes(Kubelets) to invoke Certificate API @@ -86,10 +86,10 @@ For the workers(kubelet) to access the Certificates API, they need to authentica Bootstrap Tokens take the form of a 6 character token id followed by 16 character token secret separated by a dot. Eg: abcdef.0123456789abcdef. More formally, they must match the regular expression [a-z0-9]{6}\.[a-z0-9]{16} -Bootstrap Tokens are created as a secret in the kube-system namespace. +Bootstrap Tokens are created as a secret in the kube-system namespace on the master node. ``` -cat > bootstrap-token-07401b.yaml < bootstrap-token-07401b.yaml < csrs-for-bootstrapping.yaml < csrs-for-bootstrapping.yaml < auto-approve-csrs-for-group.yaml < auto-approve-csrs-for-group.yaml < auto-approve-renewals-for-nodes.yaml < auto-approve-renewals-for-nodes.yaml <