クラスタエージェントのアップグレード
2024 年 7 月 8 日に Liza Sibu によって作成
このページでは、次を使用してクラスタエージェントをアップグレードする方法について説明します。
- Kubernetes CLI、または
- クラスタエージェント Helm チャート
設置ワークフロークラスタエージェントをインストールするには:
注: クラスタエージェント 23.2 以降では、最新のバンドルをダウンロードし、パッケージ化された YAML ファイルのみを使用する必要があります。
Upgrade the Cluster Agent Using Kubernetes CLI
- Download the target version of the Cluster Agent bundle from theDownloads portal.
- Unzip the bundle and change the directory to the unzipped folder.
unzip appdynamics-cluster-agent-alpine-linux-<version>.zip cd appdynamics-cluster-agent-alpine-linux-<version> - Update the
cluster-agent.yamlto include any previously applied configuration. - (Optional) If you require the Splunk AppDynamics SaaS integration with Splunk Observability Cloud, check the required configurations in the Install Splunk OTel Collector Using Cluster Agent.
- Update the image tag to add the version of the downloaded Cluster Agent bundle (for example, 25.2.0):
apiVersion: cluster.appdynamics.com/v1alpha1 kind: Clusteragent metadata: name: k8s-cluster-agent namespace: appdynamics spec: appName: "<app-name>" controllerUrl: "http://<appdynamics-controller-host>:8080" account: "<account-name>" # docker image info image: "docker.io/appdynamics/cluster-agent:25.2.0" serviceAccountName: appdynamics-cluster-agent - Delete and re-create the Operator and Cluster Agent.
kubectl delete -f cluster-agent.yaml kubectl delete -f cluster-agent-operator.yaml kubectl create -f cluster-agent-operator.yaml kubectl create -f cluster-agent.yaml
Upgrade the Cluster Agent Using the Helm Chart
The latest Cluster Agent Helm Chart is available at appdynamics-charts/cluster-agent
- Use
helm getandhelm showto determine if an upgrade is required to install the most recent Cluster Agent images from appdynamics-charts/cluster-agent .# 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 - To perform the upgrade, uninstall and re-install the Cluster Agent Helm Chart using the same namespace from the previous installation:
- (Optional) If you require the Splunk AppDynamics SaaS integration with Splunk Observability Cloud, check the required configurations in the Install Splunk OTel Collector Using Cluster Agent.
- Uninstall existing helm chart.
helm uninstall "<cluster-agent-helm-release>" --namespace appdynamics - Delete all the previously installed CustomResourceDefinition (CRDs) related to Splunk AppDynamics Agent by using these commands:
kubectl get crd | grep appdynamics kubectl delete crd clusteragents.cluster.appdynamics.com kubectl delete crd infravizs.cluster.appdynamics.com - Install Cluster Agent helm chart by using the same namespace.
helm install -f ./ca1-values.yaml "<my-cluster-agent-helm-release>" appdynamics-charts/cluster-agent --namespace=appdynamics