diff options
Diffstat (limited to 'k8s/admin-prerequisite-tools.md')
| -rw-r--r-- | k8s/admin-prerequisite-tools.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/k8s/admin-prerequisite-tools.md b/k8s/admin-prerequisite-tools.md new file mode 100644 index 0000000..9f224f4 --- /dev/null +++ b/k8s/admin-prerequisite-tools.md @@ -0,0 +1,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 +``` |
