mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-26 16:21:21 +00:00
Fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user