Actualizar 'README.md'

This commit is contained in:
2021-07-28 10:07:11 +00:00
parent eddb411890
commit ac9704bfc7

View File

@ -103,3 +103,43 @@ systemctl daemon-reload
systemctl enable etcd
systemctl start etcd
### Actualizar la configuración
kubeadm config migrate --old-config config.yaml --new-config config1.yaml
### Inicializar el cluster
kubeadm init --config=config.yaml
kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}'
kubectl patch node photon-kubectr01 -p '{"spec":{"podCIDR":"10.244.0.0/24"}}'
### Copiar certificados al resto de nodos master
scp -r /etc/kubernetes/pki root@172.16.100.112:/etc/kubernetes/.
scp -r /etc/kubernetes/pki root@172.16.100.113:/etc/kubernetes/.
### Realizar en los nuevos nodos
rm /etc/kubernetes/pki/apiserver.*
### Incorporar nuevos master
kubeadm join 172.16.100.100:6443 --token colmta.7uxl2adqk6x6w6wu \
--discovery-token-ca-cert-hash sha256:87497e41439ff2d7c620eff16c534d1c67c8dc0a9b6c43543bc4e008305f7106 \
--control-plane
### Incorporar nuevos workers
kubeadm join 172.16.100.100:6443 --token colmta.7uxl2adqk6x6w6wu \
--discovery-token-ca-cert-hash sha256:87497e41439ff2d7c620eff16c534d1c67c8dc0a9b6c43543bc4e008305f7106
### Despliegue de flannel
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml