IPs del cluster

This commit is contained in:
2026-02-24 12:20:17 +01:00
parent 97d9f02036
commit 46ef9fbfb5

View File

@@ -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-node01 node-role.kubernetes.io/worker=worker
#kubectl label node worker-node02 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 #Desactivar que al node controlplane es puguin executar pods
#kubectl taint nodes controlplane node-role.kubernetes.io/master=true:NoSchedule #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