Download PDF
Download page Upgrade PSA in Bare Metal K8s.
Upgrade PSA in Bare Metal K8s
Upgrade the Private Synthetic Agent
To upgrade the PSA, perform the following steps:
- Pull the Docker Image
- (Optional) Add Custom Python Libraries
- Tag and Push Images to the Registry
- Update the Helm Chart
- Upgrade the PSA
Pull the Docker Image
Pull the pre-built docker images for sum-chrome-agent, sum-api-monitoring-agent, and sum-heimdall from DockerHub. The pre-built images include the dependent libraries, so you can use these images even when you do not have access to the Internet.
Run the following commands to pull the agent images:
docker pull appdynamics/heimdall-psa
docker pull appdynamics/chrome-agent-psa
docker pull appdynamics/api-monitoring-agent-psa
Add Custom Python Libraries
This is an optional step. In addition to the available standard set of libraries, you can add custom Python libraries to the agent to use in scripted measurements. You build a new image based on the image you loaded as the base image.
Create a Dockerfile and then create
RUN
directives to runpython
pip
. For example, to install the libraryalgorithms
you can create a Dockerfile:# Use the sum-chrome-agent image we just loaded as the base image FROM sum-chrome-agent:<agent-tag> # Install algorithm for python3 on top of that RUN python3 -m pip install algorithms==0.1.4 # We can add more RUN directives for installing more libraries # RUN python3 -m pip install ...
CODEYou can create any number of
RUN
directives to install the required libraries.To build the new image, run the following commands:
Web Monitoring PSA:docker build -t sum-chrome-agent:<agent-tag> - < Dockerfile
CODEAPI Monitoring PSA:
docker build -f Dockerfile-PSA -t sum-api-monitoring-agent:<agent-tag> .
CODEYou must build the images on the host with the same OS type of Kubernetes cluster nodes. For example, if you are pushing the image to AWS, then run the following command:
docker buildx build -f Dockerfile-PSA --platform=linux/amd64 -t sum-api-monitoring-agent:<api-tag> .
CODE
The newly built agent image contains the required libraries.
Tag and Push Images to the Registry
If you are managing your own Kubernetes cluster, then you must deploy your own registry server. For more details, see Deploy a Registry Server.
After deploying the registry, tag and push the images.
Replace <REGISTRY_HOST>
and <REGISTRY_PORT>
with the values that you used while deploying the registry.
To tag the images, enter:
docker tag sum-heimdall:<heimdall-tag> <REGISTRY_HOST>:<REGISTRY_PORT>/sum-heimdall:<heimdall-tag>
docker tag sum-chrome-agent:<agent-tag> <REGISTRY_HOST>:<REGISTRY_PORT>/sum-chrome-agent:<agent-tag>
docker tag sum-api-monitoring-agent:<agent-tag> <REGISTRY_HOST>:<REGISTRY_PORT>/sum-api-monitoring-agent:<agent-tag>
To push the images, enter:
docker login <REGISTRY_HOST>:<REGISTRY_PORT> docker push <REGISTRY_HOST>:<REGISTRY_PORT>/sum-heimdall:<heimdall-tag>
docker push <REGISTRY_HOST>:<REGISTRY_PORT>/sum-chrome-agent:<agent-tag>
docker push <REGISTRY_HOST>:<REGISTRY_PORT>/sum-api-monitoring-agent:<agent-tag>
Update the Helm Chart
Follow these steps and update the configuration key value pairs in the values.yaml
file:
Upgrade the PSA
From PSA 23.12 onwards, you must deploy Ignite and Heimdall in a single namespace named measurement
.
Navigate to the new Linux distribution folder and run the following command:
helm install synth ignite-psa.tgz --values values-ignite.yaml --namespace measurement
CODEWait until the status of Ignite pods changes to
running
. Then, run the following command:helm upgrade heimdall-onprem sum-psa-heimdall.tgz --values values.yaml --namespace measurement
CODEAfter the status of the new Heimdall and Ignite pods changes to
running
, uninstall the old Ignite namespace:helm uninstall synth -n ignite
CODE