From 375e315ca99f720041fa9ed432c8805d415b5a26 Mon Sep 17 00:00:00 2001
From: GrowLow <truongdavidpro@outlook.com>
Date: Fri, 14 Mar 2025 00:58:42 +0100
Subject: [PATCH] =?UTF-8?q?Docs:=20Notes=20des=20commandes=20=C3=A0=20effe?=
 =?UTF-8?q?ctuer=20pour=20installation=20k3s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 docs/links.txt           |  1 +
 docs/setup_commandes.txt | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 docs/setup_commandes.txt

diff --git a/docs/links.txt b/docs/links.txt
index 237bafe..c548ed8 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 0000000..d4359d2
--- /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
-- 
GitLab