blob: 9f224f49ff2646c7d688b72fb9b81edca1c6193f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Admin prerequisite tools to administer the k3s cluster
# tools
- `kubectl`
- `argocd` CLI
- network access to the k3s master on port 6443
- `nc -zv 192.168.1.140 6443`
# commands to pass
```sh
# On your PC, copy kubeconfig from k3s master
scp username@<k3s-master-ip>:/etc/rancher/k3s/k3s.yaml ~/.kube/config
# if sudo is needed :
ssh username@<k3s-master-ip> 'sudo cat /etc/rancher/k3s/k3s.yaml' > ~/.kube/config
# Edit the file to change the server IP to your master's IP
# Change "server: https://127.0.0.1:6443" to "server: https://<k3s-master-ip>:6443"
vim ~/.kube/config
# Test it works
kubectl get nodes
```
|