- Create a .kubeconfig file for the cluster that you are going to provision with the new server URL and CA certificate: https://gist.github.com/superseb/f6cd637a7ad556124132ca39961789a4
- Note down the checksum of the new CA cert:
$ curl --insecure -s -fL https://<rancher_server>/v3/settings/cacerts | jq -r .value | sha256sum- Inspect the
cattle-cluster-agentdeployment and note down the name of thecattle-credentialssecret it consumes - Update the secret with the new server URL:
kubectl patch secret cattle-credentials-<token> -p='{"data":{"url": "<server_url>"}}'