... | ... | @@ -46,13 +46,13 @@ ExecStart=/usr/local/bin/k3s \ |
|
|
Currently, the K3S cluster installed is using the same PostgreSQL database on the Gitlab Server VM on PESC. The current configuration for K3S service file specifies the connection string to the database and the encryption token to join new nodes to the cluster. To join new nodes, the only command needed is:
|
|
|
|
|
|
```
|
|
|
curl -fsL https://get.k3s.io | K3S_URL=https://146.164.34.22:6443 K3S_TOKEN=fxKENhXQ3ARJc6KfeWPJ6RoeTL9pAUWgExiNd2ks sh –
|
|
|
curl -fsL https://get.k3s.io | K3S_URL=https://SERVER_URL:6443 K3S_TOKEN=ENCRYPTION_TOKEN sh –
|
|
|
```
|
|
|
|
|
|
In our case, the command to join nodes on K3S is:
|
|
|
|
|
|
```
|
|
|
curl -fsL https://get.k3s.io | K3S_URL=https://SERVER_URL:6443 K3S_TOKEN=ENCRYPTION_TOKEN sh –
|
|
|
curl -fsL https://get.k3s.io | K3S_URL=https://146.164.34.22:6443 K3S_TOKEN=fxKENhXQ3ARJc6KfeWPJ6RoeTL9pAUWgExiNd2ks sh –
|
|
|
```
|
|
|
|
|
|
This command will allow the new host to join the cluster, and no other tools are necessary to run the cluster services.
|
... | ... | |