I have 2 node cluster both of them with the certificates proxy client and server expired not the case in CA.
Now I’m unable to exec commands on any of the pods.
sudo kubectl -n Namespace1 --insecure-skip-tls-verify exec pod-multicontainer -c postgres – /bin/bash
error: unable to upgrade connection: Unauthorized
What have we tried so far:
microk8s refresh-certs -e proxy-client.crt
microk8s refresh-certs -e server.crt
Servers get well refreshed certs, then leave and rejoin cluster on node1 ok, but I can not leave the cluster from node2, it’s says it is handling the etcd database so it can not leave the cluster, and so certificates could not be propagated properly.
What can we do in this situation?
Thanks for your help