Skip to content
Snippets Groups Projects
Commit 375e315c authored by GrowLow's avatar GrowLow
Browse files

Docs: Notes des commandes à effectuer pour installation k3s

parent 55fa808c
Branches
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ https://www.youtube.com/watch?v=WVsv3Ca_Y70
https://k3s.io/
https://k0sproject.io/
https://www.nops.io/blog/k0s-vs-k3s-vs-k8s/
https://github.com/k3s-io/k3s/issues/2067
-- HA K3s
https://docs.k3s.io/architecture#high-availability-k3s
......
Connexion:
- nslookup <hostname_raspberry>.local ou ping <hostname_raspberry>.local -4
- ssh <user>@<ip_raspberry>
Avant Installation:
- sudo raspi-config -> activer SSH et renommer hostname
- sudo sed -i '$ s/$/ cgroup_memory=1 cgroup_enable=memory/' /boot/firmware/cmdline.txt
Installation:
Installer en sudo sinon des erreurs de permissions d'accès pour de nombreux fichiers ...
Premier nœud:
- sudo su
- curl -sfL https://get.k3s.io | sh -s - --cluster-init
Prochains nœuds:
- sudo su
- curl -sfL https://get.k3s.io | sh -s - --server https://<IP_MASTER_PREMIER_NOEUD>:6443 --token "<TOKEN>"
Vérification:
- kubectl get nodes -o wide
- kubectl get pods -A
- kubectl get svc
- sudo systemctl status k3s
Désinstallation:
- sudo k3s-uninstall.sh
- sudo rm -rf /var/lib/rancher/k3s
- shutdown now
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment