Unable to upgrade Elastic Agents installed on Azure AKS which are managed by Fleet

I have an AKS cluster and I have installed Elastic Agents on the cluster by following this documentation: Run Elastic Agent on Azure AKS managed by Fleet | Fleet and Elastic Agent Guide [8.17] | Elastic

Recently, I tried to upgrade the Elastic Agents by following Upgrade Fleet-managed Elastic Agents | Fleet and Elastic Agent Guide [8.17] | Elastic, but the 'Upgrade agent' button is disabled.

I tried to uninstall the current Elastic Agent and install the latest one, however the new one was unable to connect to the Fleet. After I checked the log from the Elastic Agent pod, I suspect that the local Elastic Agent data from the previous version left in the AKS node is the cause.

Is there any suggested way to upgrade the Elastic Agents installed in AKS?

Thank you!

You installed the agents following this documentation, right?

I do not use Kubernetes, but since you use a manifest to install, I think you would need to change the version on the manifest.

1 Like

Hi @mattyanyan.work Welcome to the community.

Just to check ...

What version of the Elastic Stack are you using?

What version are the agents currently on?

But yes hover over this the little i next to the version and you should see this..

This is my fleet-managed elastic agent running in K8s.

So, in short, you re- apply the manifest with the correct version.

And the agent can not / should not be ahead of the Elastic version