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