From 44a4016264f2771f2e89fcfa509fe329d3774594 Mon Sep 17 00:00:00 2001 From: vpalazhi <32654249+vpalazhi@users.noreply.github.com> Date: Mon, 2 Dec 2019 21:06:52 -0500 Subject: [PATCH] Update tls-bootstrap-worker-node-2.md --- .../tls-bootstrap-worker-node-2.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/practice-questions-answers/install/bootstrap-worker-node-2/tls-bootstrap-worker-node-2.md b/practice-questions-answers/install/bootstrap-worker-node-2/tls-bootstrap-worker-node-2.md index d928965..3ebdfc9 100644 --- a/practice-questions-answers/install/bootstrap-worker-node-2/tls-bootstrap-worker-node-2.md +++ b/practice-questions-answers/install/bootstrap-worker-node-2/tls-bootstrap-worker-node-2.md @@ -124,8 +124,15 @@ EOF # Create bootstrap context on node03 +# Important: Replace the kube-apiserver IP address in the command below with the correct one. +This can be obtained by running the below command on the master node: ``` -kubectl config --kubeconfig=/tmp/bootstrap-kubeconfig set-cluster bootstrap --server='https://172.17.0.65:6443' --certificate-authority=/etc/kubernetes/pki/ca.crt +kubectl cluster-info +``` +Create the kubeconfig file: + +``` +kubectl config --kubeconfig=/tmp/bootstrap-kubeconfig set-cluster bootstrap --server='https://:6443' --certificate-authority=/etc/kubernetes/pki/ca.crt kubectl config --kubeconfig=/tmp/bootstrap-kubeconfig set-credentials kubelet-bootstrap --token=09426c.g262dkeidk3dx21x kubectl config --kubeconfig=/tmp/bootstrap-kubeconfig set-context bootstrap --user=kubelet-bootstrap --cluster=bootstrap kubectl config --kubeconfig=/tmp/bootstrap-kubeconfig use-context bootstrap