From Cluster Agent 23.2 onwards you must download the latest bundle and use only the packaged YAML files.
When you upgrade from Cluster Agent < 23.2 to Cluster Agent >= 23.2, the instrumented pods will restart if APPD_POD_INSTRUMENTATION_STATE annotation is not present.
Upgrade the Cluster Agent Using Kubernetes CLI
Download the target version of the Cluster Agent bundle from the AppDynamics Downloads portal.
Unzip the bundle and cd to the unzipped folder:
unzip appdynamics-cluster-agent-alpine-linux-<version>.zip
cd appdynamics-cluster-agent-alpine-linux-<version>
BASH
Update the cluster-agent.yaml to include any previously applied configuration.
Update the image tag to add the version of the downloaded Cluster Agent bundle (for example, 21.12.0):
The latest Cluster Agent Helm Chart is available at appdynamics-cloud-helmcharts. Before you can upgrade to the latest Cluster Agent, you must first uninstall the existing Helm Chart and then re-install it.
Use helm get and helm show to determine if an upgrade is required to install the most recent Cluster Agent images from appdynamics-cloud-helmcharts:
# which images are currently installed by my release?
helm get all "<my-cluster-agent-helm-release>" -n appdynamics | grep -E 'agentTag|operatorTag'
agentTag: 21.12.0
operatorTag: 21.12.0
# which images are available to install?
helm show values appdynamics-charts/cluster-agent | grep -E 'agentTag|operatorTag'
agentTag: 21.12.0
operatorTag: 21.12.0
BASH
To perform the upgrade, uninstall and re-install the Cluster Agent Helm Chart using the same namespace from the previous installation: