Build up data for better show up

This commit is contained in:
mr
2026-04-15 15:46:27 +02:00
parent 367fb7a455
commit 74e312bca4
6 changed files with 286 additions and 28 deletions

View File

@@ -16,8 +16,17 @@ sudo rm -rf /etc/rancher /var/lib/rancher /var/lib/kubelet /etc/cni /opt/cni
sudo ip link delete cni0 2>/dev/null || true
sudo ip link delete flannel.1 2>/dev/null || true
INSTALL_SCRIPT="/tmp/install_k3s.sh"
echo "🚀 Installing K3s..."
curl -sfL https://get.k3s.io | sh -
if [ ! -f "$INSTALL_SCRIPT" ]; then
echo "Téléchargement du script k3s..."
curl -sfL https://get.k3s.io -o "$INSTALL_SCRIPT"
chmod +x "$INSTALL_SCRIPT"
fi
echo "Installation de k3s..."
sh "$INSTALL_SCRIPT"
echo "📄 Setting kubeconfig..."
mkdir -p ~/.kube