File tree 3 files changed +11
-29
lines changed
3 files changed +11
-29
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ Setup the control-plane by running:
28
28
sudo bash control-plane.sh
29
29
```
30
30
31
- Copy the generated configuration ` config/kubeadm-join.yaml ` to each worker node and run this command to join the cluster:
31
+ Copy the generated configuration files ` config/kubeadm-join.<node-type>. yaml ` to each node and run this command to join the cluster:
32
32
``` bash
33
- sudo bash worker .sh
33
+ sudo bash node .sh ' config/kubeadm-join.<node-type>.yaml '
34
34
```
35
35
36
36
Run this on the control-plane for bootstrapping the [ infrastructure] ( https://github.com/mmontes11/k8s-infrastructure ) :
@@ -43,14 +43,6 @@ export GITHUB_TOKEN=<your-personal-access-token>
43
43
./bootstrap.sh
44
44
```
45
45
46
- ### Label nodes
47
-
48
- In order to label nodes, run the following script in the control-plane:
49
-
50
- ``` bash
51
- ./label-nodes.sh
52
- ```
53
-
54
46
### Kubeconfig
55
47
56
48
` admin ` and ` super-admin ` kubeconfigs are available in the following control-plane paths:
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,26 +4,29 @@ set -euo pipefail
4
4
5
5
source ./scripts/lib.sh
6
6
7
- JOIN_CONFIG_FILE=config/kubeadm-join.yaml
7
+ if [ $# -lt 1 ]; then
8
+ echo " Usage: $0 <join-config-file>"
9
+ exit 1
10
+ fi
8
11
12
+ JOIN_CONFIG_FILE=" $1 "
9
13
if [ ! -f $JOIN_CONFIG_FILE ]; then
10
14
echo " Join configuration file '$JOIN_CONFIG_FILE ' not found"
11
15
exit 1
12
16
fi
13
17
14
- install_scripts =(
18
+ INSTALL_SCRIPTS =(
15
19
" scripts/apt.sh"
16
20
" scripts/swap.sh"
17
21
" scripts/network.sh"
18
22
" scripts/storage.sh"
19
23
" scripts/containerd.sh"
20
24
" scripts/kubernetes.sh"
21
25
)
22
-
23
- for i in " ${! install_scripts[@]} " ; do
24
- source " ${install_scripts[$i]} "
26
+ for INSTALL in " ${INSTALL_SCRIPTS[@]} " ; do
27
+ source " $INSTALL "
25
28
done
26
29
27
30
kubeadm join --config $JOIN_CONFIG_FILE
28
31
29
- echo " worker installation completed successfully! 🚜"
32
+ echo " node installation completed successfully! 🚜"
You can’t perform that action at this time.
0 commit comments