From 93b1cc5e6ee96010b18663359f289ac55c6c37c8 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Tue, 29 Oct 2019 20:29:26 -0500 Subject: [PATCH] Fixes --- slides/k8s/multinode.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/slides/k8s/multinode.md b/slides/k8s/multinode.md index cd67080a..f0eb8c0a 100644 --- a/slides/k8s/multinode.md +++ b/slides/k8s/multinode.md @@ -140,12 +140,9 @@ class: extra-details .exercise[ -- Copy `kubeconfig` to the other nodes: - ```bash - for N in 2 3; do - scp ~/kubeconfig node$N: - done - ``` +- Copy `~/.kube/config` to the other nodes + + (Given the size of the file, you can copy-paste it!) ] @@ -153,23 +150,26 @@ class: extra-details ## Starting kubelet -- Reminder: kubelet needs to run as root; don't forget `sudo`! +*The following assumes that you copied the kubeconfig file to /tmp/kubeconfig.* .exercise[ -- Join the first node: - ```bash - sudo kubelet --kubeconfig ~/kubeconfig - ``` +- Log into node2 -- Open more terminals and join the other nodes to the cluster: +- Start the Docker Engine: ```bash - ssh node2 sudo kubelet --kubeconfig ~/kubeconfig - ssh node3 sudo kubelet --kubeconfig ~/kubeconfig + sudo dockerd & + ``` + +- Start kubelet: + ```bash + sudo kubelet --kubeconfig /tmp/kubeconfig ``` ] +Repeat on more nodes if desired. + --- ## If we're running the "old" control plane