This message was deleted.
# general
a
This message was deleted.
c
iirc the purpose of that is to execute a one-shot command to update the config. It’s not meant to run forever, and its intended purpose is to do what it’s doing - update the config to sync with the configuration as managed by rancher. Why are you trying to override the configuration locally instead of managing it through rancher?
a
Managing through rancher would be preferred, I just cannot figure out how to update the server address that the agent is talking to
c
It comes from the rancher config, where you tell it what its address is.
a
Are you referring to the server-url in the global settings?
c
yep
a
So even when I update that, the agents don't start communicating to the new server -- is there another way for me to push the change down to the agent?
c
there used to be a tool to do that, but I don’t know that its supported any longer
a
Hmm. Is the server config supposed to be automatically sent down to existing agents when it is updated or no?
After updating the server-url, the registration command gets automatically updated, but that's only for registering new agents, correct?
c
right
The docs here should cover what you’re doing - they’re written for changing the cert, but changing the URL is effectively the same process. https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/resources/update-rancher-certificate
a
Looking at the doc, it seems like this command should do the trick?
kubectl annotate <http://clusters.management.cattle.io|clusters.management.cattle.io> <CLUSTER_ID> io.cattle.agent.force.deploy=true
c
you can do that if they are still connected to the server, yes. If they are disconnected because you changed the URL or cert out from under them and now they’re disconnected, then you need to follow the steps to manually redeploy the agents.
👍 1
a
Bingo, that turned out to be the key, then I just had to re-run the agent registration command and it connected right up! Thanks so much for the help
c
classic x-y problem :)