diff --git a/docs/links.txt b/docs/links.txt index 237bafe82a45e880101fda3bec79b34fcb3dd733..c548ed8acf0aa8b115bfa2f19c2d15537afa41d6 100644 --- a/docs/links.txt +++ b/docs/links.txt @@ -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 diff --git a/docs/setup_commandes.txt b/docs/setup_commandes.txt new file mode 100644 index 0000000000000000000000000000000000000000..d4359d2a8562e636a07577e043778b87a32db034 --- /dev/null +++ b/docs/setup_commandes.txt @@ -0,0 +1,29 @@ +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