we are using the Kubernetes plugin to start cloud agents in our local k8s cluster. Everything works great, but we are having some issues with the startup time of the agents. Every time a new cloud agent starts, the server issues an upgrade request and we need to wait approximately 1-2 minutes until the agent is connected and available to pick up jobs from the queue. This behavior kind of breaks our automation and leads to delays.
We use a customized image built based on the jetbrains/teamcity-agent docker image, which is the same version as our TeamCity server.
Is there a way to overcome this agent upgrade and speed up the initialization process?