adamant-dog-56181
03/27/2025, 8:32 PMtls.secret: rancher
in the Helm values.
Later on, I switched to a self-signed certificate (or a certificate signed by a private CA). At that point, there was already an existing downstream cluster registered and functioning.
After changing the certificate, the rancher-system-agent
on the cluster nodes started throwing the following error:
rancher-system-agent[3597227]: time="2025-02-20T16:20:12Z" level=info msg="Initial connection to Kubernetes cluster failed with error Get \"
<https://mi.dominio.com/version>\": tls: failed to verify certificate: x509: certificate signed by unknown authority, removing CA data and trying again"
rancher-system-agent[3597227]: time="2025-02-20T16:20:12Z" level=fatal msg="error while connecting to Kubernetes cluster with nullified CA data: Get \"<https://mi.dominio.com/version>\": tls: failed to verify certificate: x509: certificate signed by unknown authority"
As a workaround, I manually installed the private CA certificate on each host node, and after that, the error went away.
My question is:
Is this the expected behavior when switching to a self-signed or private CA certificate with an existing downstream cluster, or could this be considered a bug?
Note: From the agent pods, I can reach the Rancher URLs without needing to specify the CA certificate explicitly.
Thanks in advance for your help.creamy-pencil-82913
03/27/2025, 8:46 PMadamant-dog-56181
03/28/2025, 2:17 AM