Actualizar readme-suse.md
This commit is contained in:
@ -407,6 +407,27 @@ cd
|
||||
sudo cp -i admin.conf $HOME/.kube/config
|
||||
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
||||
```
|
||||
> ## EXTRA: Si te ha caducado el TOKEN, o no lo guardaste
|
||||
|
||||
Para obtener el hash del certificado CA necesario para unirte al clúster, ejecuta:
|
||||
|
||||
```sh
|
||||
openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | \
|
||||
openssl rsa -pubin -outform der 2>/dev/null | \
|
||||
openssl dgst -sha256 -hex | awk '{print $2}'
|
||||
```
|
||||
|
||||
Esto te dará un token (hash) que debes incorporar al siguiente comando:
|
||||
|
||||
```sh
|
||||
sudo kubeadm join 192.168.0.20:6443 \
|
||||
--token j4p24i.9kgvuw9kh0prlny0 \
|
||||
--discovery-token-ca-cert-hash sha256:{token} \
|
||||
--control-plane \
|
||||
--certificate-key 1d69c5ac29959da6c5f033f8beb5f61f98aa3fe4534241727890ad6f581e90cd
|
||||
```
|
||||
|
||||
Reemplaza `{token}` por el valor obtenido en el primer paso.
|
||||
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user