From 46ef9fbfb561623ce0c52716c51a4367bc66eb03 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Tue, 24 Feb 2026 12:20:17 +0100 Subject: [PATCH] IPs del cluster --- k3s_worker.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/k3s_worker.sh b/k3s_worker.sh index a600ecd..eb66ab2 100644 --- a/k3s_worker.sh +++ b/k3s_worker.sh @@ -19,4 +19,12 @@ echo "✅ Worker unit al clúster!" #kubectl label node worker-node01 node-role.kubernetes.io/worker=worker #kubectl label node worker-node02 node-role.kubernetes.io/worker=worker #Desactivar que al node controlplane es puguin executar pods -#kubectl taint nodes controlplane node-role.kubernetes.io/master=true:NoSchedule \ No newline at end of file +#kubectl taint nodes controlplane node-role.kubernetes.io/master=true:NoSchedule + +#Estabilitzar les IPS +# Al Control Plane +# curl -sfL https://get.k3s.io | sh -s - --node-ip 192.168.3.10 --flannel-iface eth1 +# Al Worker01 +# curl -sfL https://get.k3s.io | K3S_URL=https://192.168.3.10:6443 K3S_TOKEN=$K3S_TOKEN sh -s - --node-ip 192.168.3.11 +# Al Worker02 +# curl -sfL https://get.k3s.io | K3S_URL=https://192.168.3.10:6443 K3S_TOKEN=$K3S_TOKEN sh -s - --node-ip 192.168.3.12 \ No newline at end of file