This document provides information on how to update the Google Chrome and Microsoft Edge browser packages on Gateways deployed using ISO or OVA, as well as on customer-owned Kubernetes clusters. Use one of the following methods based on your Gateway deployment type:
- Method 1: Using OpsRamp Agent Remote Script (Recommended)Recommended for Gateways deployed using ISO or OVA.
- Method 2: Manual ExecutionApplicable to Gateways deployed using ISO or OVA, as well as managed Kubernetes deployments.
- Method 3: Manual Command ExecutionApplicable to Gateways deployed using ISO or OVA, as well as managed Kubernetes deployments.
Webprobe restarts during the update, and synthetic monitors are unavailable for approximately one to two minutes.
Note
- This procedure is applicable to Gateway 21.2.6.
- If your Gateway version is earlier than 21.2.6, upgrade the Gateway to 21.2.6 from the UI. The Gateway upgrade automatically applies the fix.
Method 1: Using OpsRamp Agent Remote Script
Prerequisites
- The Gateway can access its container registry.
- If you use your own registry or mirror, copy the updated Webprobe image to the registry or mirror using the same tag before starting the update.
Steps:
- Navigate to Automation > Scripts v2.
- Create a Script Category (Global, Partner-specific, or Client-specific).
- Click the Add to create a new script. Provide the following script details:
- Name: Chrome and Edge Package Upgrade (Example)
- Description: Patch script to update Chrome and Edge
- Execution Time: 900 seconds
- Platform: Linux
- Paste this following script in the script content:
#!/bin/bash set -x # Chrome/Edge fix is shipped as a rebuilt webprobe image under the existing 21.2.6 tag (no Helm chart change). # The chart uses imagePullPolicy: IfNotPresent, so nodes keep the old cached image. This patch sets # imagePullPolicy: Always on the webprobe StatefulSet, which restarts webprobe and pulls the fixed image. # Uses only kubectl/helm, so it works on k3s, rke2, EKS, AKS and GKE. TARGET_VERSION="21.2.6" # Optional: digest of the fixed image (sha256:...). When set, the patch fails if webprobe does not end up on it. EXPECTED_DIGEST="" # Usage: $0 [namespace] NAMESPACE="${1:-default}" # Use the caller's KUBECONFIG (cloud clusters); otherwise fall back to the local k3s/rke2 kubeconfig if [ -z "$KUBECONFIG" ]; then for f in /etc/rancher/rke2/rke2.yaml /etc/rancher/k3s/k3s.yaml; do if [ -r "$f" ]; then export KUBECONFIG="$f" break fi done fi # Fail fast if the cluster is unreachable, so an empty version is never mistaken for "skip" if ! helm list -n "$NAMESPACE" >/dev/null 2>&1; then echo "ERROR: unable to reach the cluster in namespace '$NAMESPACE'. Check KUBECONFIG (current: ${KUBECONFIG:-~/.kube/config}); on k3s/rke2 run as root." exit 1 fi if ! helm list -n "$NAMESPACE" --filter '^webprobe$' --no-headers | awk '{print $1}' | grep -qx 'webprobe'; then echo "webprobe is not installed in namespace '$NAMESPACE' — skipping image patch." exit 0 fi CURRENT_VERSION="$(helm list --filter '^webprobe$' -n "$NAMESPACE" | awk 'NR==2 {print $9}' | awk -F '-' '{print $NF}')" if [[ "$CURRENT_VERSION" != "$TARGET_VERSION" ]]; then echo "webprobe version is '$CURRENT_VERSION', not $TARGET_VERSION — skipping image patch. Ask the customer to upgrade the gateway from the UI; the upgrade pulls the fixed $TARGET_VERSION image automatically." exit 0 fi pod_digests() { kubectl get pods -n "$NAMESPACE" -l app=webprobe -o jsonpath='{range .items[*]}{.status.containerStatuses[*].imageID}{"\n"}{end}' | grep -o 'sha256:[a-f0-9]\{64\}' | sort -u } # Locate the webprobe container in the StatefulSet CONTAINERS="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.spec.template.spec.containers[*].name}')" || { echo "ERROR: webprobe StatefulSet not found in namespace '$NAMESPACE'"; exit 1; } INDEX=0 FOUND="" for name in $CONTAINERS; do if [ "$name" = "webprobe" ]; then FOUND=1 break fi INDEX=$((INDEX + 1)) done [ -n "$FOUND" ] || { echo "ERROR: container 'webprobe' not found in the webprobe StatefulSet"; exit 1; } IMAGE="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath="{.spec.template.spec.containers[$INDEX].image}")" POLICY="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath="{.spec.template.spec.containers[$INDEX].imagePullPolicy}")" BEFORE_DIGEST="$(pod_digests)" BEFORE_REVISION="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.status.updateRevision}')" echo "Image: $IMAGE, current pull policy: $POLICY, running digest: ${BEFORE_DIGEST:-unknown}" # Changing the pull policy updates the pod template, which restarts webprobe; if it is already Always, restart explicitly if [ "$POLICY" = "Always" ]; then kubectl rollout restart statefulset/webprobe -n "$NAMESPACE" || { echo "ERROR: failed to restart webprobe"; exit 1; } else kubectl patch statefulset webprobe -n "$NAMESPACE" --type=json \ -p="[{\"op\":\"replace\",\"path\":\"/spec/template/spec/containers/$INDEX/imagePullPolicy\",\"value\":\"Always\"}]" \ || { echo "ERROR: failed to set imagePullPolicy: Always on the webprobe StatefulSet"; exit 1; } fi # Check every 30s for up to 10 minutes; leave the loop as soon as the restarted webprobe pod (new StatefulSet revision) # is Running with all containers ready (e.g. 1/1) # and no old pod is left, so the digest is read from the new pod only WAIT_TIMEOUT=600 WAIT_INTERVAL=30 WAITED=0 while true; do UPDATE_REVISION="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.status.updateRevision}')" REPLICAS="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.spec.replicas}')" REPLICAS="${REPLICAS:-1}" POD_STATES="$(kubectl get pods -n "$NAMESPACE" -l app=webprobe -o jsonpath='{range .items[*]}{.metadata.labels.controller-revision-hash}|{.metadata.deletionTimestamp}|{.status.phase}|{.status.containerStatuses[*].ready}{"\n"}{end}')" TOTAL_PODS="$(echo "$POD_STATES" | grep -c .)" READY_PODS="$(echo "$POD_STATES" | awk -F'|' -v rev="$UPDATE_REVISION" -v old="$BEFORE_REVISION" '$1 == rev && rev != old && $2 == "" && $3 == "Running" && $4 != "" && $4 !~ /false/' | grep -c .)" echo "Waiting for webprobe: $READY_PODS/$REPLICAS restarted pod(s) running and ready (waited ${WAITED}s)" if [ -n "$UPDATE_REVISION" ] && [ "$UPDATE_REVISION" != "$BEFORE_REVISION" ] \ && [ "$READY_PODS" -ge "$REPLICAS" ] && [ "$TOTAL_PODS" -eq "$READY_PODS" ]; then break fi if [ "$WAITED" -ge "$WAIT_TIMEOUT" ]; then kubectl get pods -n "$NAMESPACE" -l app=webprobe -o wide echo "ERROR: webprobe did not become ready within ${WAIT_TIMEOUT}s. Check pull errors with: kubectl describe pod -n $NAMESPACE -l app=webprobe" exit 1 fi sleep "$WAIT_INTERVAL" WAITED=$((WAITED + WAIT_INTERVAL)) done kubectl get pods -n "$NAMESPACE" -l app=webprobe AFTER_DIGEST="$(pod_digests)" if [ -z "$AFTER_DIGEST" ]; then echo "ERROR: unable to read the running image digest of the restarted webprobe pod" exit 1 fi echo "webprobe restarted with $IMAGE, running digest: ${AFTER_DIGEST:-unknown}" if [[ -n "$EXPECTED_DIGEST" ]]; then if echo "$AFTER_DIGEST" | grep -qx "${EXPECTED_DIGEST#@}"; then echo "webprobe is running the fixed image $EXPECTED_DIGEST." else echo "ERROR: webprobe is running ${AFTER_DIGEST:-unknown}, expected $EXPECTED_DIGEST. The registry used by this gateway ($IMAGE) does not serve the fixed image — sync the fixed image to that registry/mirror and rerun." exit 1 fi elif [[ -n "$BEFORE_DIGEST" && "$BEFORE_DIGEST" = "$AFTER_DIGEST" ]]; then echo "Running digest is unchanged — webprobe was already running the fixed image (gateway already patched)." fi - Click on Parameters and add the following parameters to the script.
Note
Make sure that you create the parameters in the order listed below, and provide variable values according to your specific requirements.
- Save the script
- Schedule the script execution:
- Select the script
- Click
Schedule(right panel) - Fill in details:
- Schedule Name
- Target Resource(s)
- Schedule Type:
One-time
- Ensure all parameter values are correctly set.
Note
If you are using a custom namespace or a custom repository, ensure you specify the repository name and provide the corresponding repository username and password. - Click Save.
- Run the Scheduled Script from the Scheduled Script section.
- Review Execution Logs from the right-side panel for the status.
Method 2: Manual Execution
Use this if Agent based execution isn’t possible.
Prerequisites
- Access to the gateway node.
- If you use a custom registry, ensure that you have the required registry credentials.
Steps for Manual Execution:
- Login to Gateway using:
gateway-admincredentials. - Take root access by using the following command and enter password:
sudo su -3. Create a new file named update.sh and add the following shell script to it.#!/bin/bash
set -x
# Chrome/Edge fix is shipped as a rebuilt webprobe image under the existing 21.2.6 tag (no Helm chart change).
# The chart uses imagePullPolicy: IfNotPresent, so nodes keep the old cached image. This patch sets
# imagePullPolicy: Always on the webprobe StatefulSet, which restarts webprobe and pulls the fixed image.
# Uses only kubectl/helm, so it works on k3s, rke2, EKS, AKS and GKE.
TARGET_VERSION="21.2.6"
# Optional: digest of the fixed image (sha256:...). When set, the patch fails if webprobe does not end up on it.
EXPECTED_DIGEST=""
# Usage: $0 [namespace]
NAMESPACE="${1:-default}"
# Use the caller's KUBECONFIG (cloud clusters); otherwise fall back to the local k3s/rke2 kubeconfig
if [ -z "$KUBECONFIG" ]; then
for f in /etc/rancher/rke2/rke2.yaml /etc/rancher/k3s/k3s.yaml; do
if [ -r "$f" ]; then
export KUBECONFIG="$f"
break
fi
done
fi
# Fail fast if the cluster is unreachable, so an empty version is never mistaken for "skip"
if ! helm list -n "$NAMESPACE" >/dev/null 2>&1; then
echo "ERROR: unable to reach the cluster in namespace '$NAMESPACE'. Check KUBECONFIG (current: ${KUBECONFIG:-~/.kube/config}); on k3s/rke2 run as root."
exit 1
fi
if ! helm list -n "$NAMESPACE" --filter '^webprobe$' --no-headers | awk '{print $1}' | grep -qx 'webprobe'; then
echo "webprobe is not installed in namespace '$NAMESPACE' — skipping image patch."
exit 0
fi
CURRENT_VERSION="$(helm list --filter '^webprobe$' -n "$NAMESPACE" | awk 'NR==2 {print $9}' | awk -F '-' '{print $NF}')"
if [[ "$CURRENT_VERSION" != "$TARGET_VERSION" ]]; then
echo "webprobe version is '$CURRENT_VERSION', not $TARGET_VERSION — skipping image patch. Ask the customer to upgrade the gateway from the UI; the upgrade pulls the fixed $TARGET_VERSION image automatically."
exit 0
fi
pod_digests() {
kubectl get pods -n "$NAMESPACE" -l app=webprobe -o jsonpath='{range .items[*]}{.status.containerStatuses[*].imageID}{"\n"}{end}' | grep -o 'sha256:[a-f0-9]\{64\}' | sort -u
}
# Locate the webprobe container in the StatefulSet
CONTAINERS="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.spec.template.spec.containers[*].name}')" || { echo "ERROR: webprobe StatefulSet not found in namespace '$NAMESPACE'"; exit 1; }
INDEX=0
FOUND=""
for name in $CONTAINERS; do
if [ "$name" = "webprobe" ]; then
FOUND=1
break
fi
INDEX=$((INDEX + 1))
done
[ -n "$FOUND" ] || { echo "ERROR: container 'webprobe' not found in the webprobe StatefulSet"; exit 1; }
IMAGE="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath="{.spec.template.spec.containers[$INDEX].image}")"
POLICY="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath="{.spec.template.spec.containers[$INDEX].imagePullPolicy}")"
BEFORE_DIGEST="$(pod_digests)"
BEFORE_REVISION="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.status.updateRevision}')"
echo "Image: $IMAGE, current pull policy: $POLICY, running digest: ${BEFORE_DIGEST:-unknown}"
# Changing the pull policy updates the pod template, which restarts webprobe; if it is already Always, restart explicitly
if [ "$POLICY" = "Always" ]; then
kubectl rollout restart statefulset/webprobe -n "$NAMESPACE" || { echo "ERROR: failed to restart webprobe"; exit 1; }
else
kubectl patch statefulset webprobe -n "$NAMESPACE" --type=json \
-p="[{\"op\":\"replace\",\"path\":\"/spec/template/spec/containers/$INDEX/imagePullPolicy\",\"value\":\"Always\"}]" \
|| { echo "ERROR: failed to set imagePullPolicy: Always on the webprobe StatefulSet"; exit 1; }
fi
# Check every 30s for up to 10 minutes; leave the loop as soon as the restarted webprobe pod (new StatefulSet revision)
# is Running with all containers ready (e.g. 1/1)
# and no old pod is left, so the digest is read from the new pod only
WAIT_TIMEOUT=600
WAIT_INTERVAL=30
WAITED=0
while true; do
UPDATE_REVISION="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.status.updateRevision}')"
REPLICAS="$(kubectl get statefulset webprobe -n "$NAMESPACE" -o jsonpath='{.spec.replicas}')"
REPLICAS="${REPLICAS:-1}"
POD_STATES="$(kubectl get pods -n "$NAMESPACE" -l app=webprobe -o jsonpath='{range .items[*]}{.metadata.labels.controller-revision-hash}|{.metadata.deletionTimestamp}|{.status.phase}|{.status.containerStatuses[*].ready}{"\n"}{end}')"
TOTAL_PODS="$(echo "$POD_STATES" | grep -c .)"
READY_PODS="$(echo "$POD_STATES" | awk -F'|' -v rev="$UPDATE_REVISION" -v old="$BEFORE_REVISION" '$1 == rev && rev != old && $2 == "" && $3 == "Running" && $4 != "" && $4 !~ /false/' | grep -c .)"
echo "Waiting for webprobe: $READY_PODS/$REPLICAS restarted pod(s) running and ready (waited ${WAITED}s)"
if [ -n "$UPDATE_REVISION" ] && [ "$UPDATE_REVISION" != "$BEFORE_REVISION" ] \
&& [ "$READY_PODS" -ge "$REPLICAS" ] && [ "$TOTAL_PODS" -eq "$READY_PODS" ]; then
break
fi
if [ "$WAITED" -ge "$WAIT_TIMEOUT" ]; then
kubectl get pods -n "$NAMESPACE" -l app=webprobe -o wide
echo "ERROR: webprobe did not become ready within ${WAIT_TIMEOUT}s. Check pull errors with: kubectl describe pod -n $NAMESPACE -l app=webprobe"
exit 1
fi
sleep "$WAIT_INTERVAL"
WAITED=$((WAITED + WAIT_INTERVAL))
done
kubectl get pods -n "$NAMESPACE" -l app=webprobe
AFTER_DIGEST="$(pod_digests)"
if [ -z "$AFTER_DIGEST" ]; then
echo "ERROR: unable to read the running image digest of the restarted webprobe pod"
exit 1
fi
echo "webprobe restarted with $IMAGE, running digest: ${AFTER_DIGEST:-unknown}"
if [[ -n "$EXPECTED_DIGEST" ]]; then
if echo "$AFTER_DIGEST" | grep -qx "${EXPECTED_DIGEST#@}"; then
echo "webprobe is running the fixed image $EXPECTED_DIGEST."
else
echo "ERROR: webprobe is running ${AFTER_DIGEST:-unknown}, expected $EXPECTED_DIGEST. The registry used by this gateway ($IMAGE) does not serve the fixed image — sync the fixed image to that registry/mirror and rerun."
exit 1
fi
elif [[ -n "$BEFORE_DIGEST" && "$BEFORE_DIGEST" = "$AFTER_DIGEST" ]]; then
echo "Running digest is unchanged — webprobe was already running the fixed image (gateway already patched)."
fiSave the file.
Run the script using the following command:
a. Command with namespace and registry
Examples:./updater.sh <namespace> <registry>- With default namespace and default registry
./updater.sh default us-docker.pkg.dev - With custom namespace and default registry
./updater.sh <gateway-namespace> us-docker.pkg.devNote
Replacegateway-namespacewith your actual gateway namespace. - With custom namespace and custom registry with no credentials
./updater.sh <gateway-namespace> <custom-registry>Note
Replacegateway-namespaceandcustom-registrywith your actual namespace and registry URL.
b. Command with namespace and custom registry with authorization
Example./updater.sh <namespace> <registry_name> <registry_username> <registry_password>sh updater.sh gateway-namespace custom-registry registry-username registry-passwordNote
Replace the placeholders with your actualnamespace,registry URL,username, andpassword.- With default namespace and default registry
Verify the Webprobe Helm version (should be
21.2.6).helm list | grep webprobeAccess the Webprobe container:
kubectl exec -it -n <namespace> webprobe-0 -- bashCheck the installed Chrome and Edge versions:
msedgedriver --version chromedriver --version dpkg -l | grep -E "chrome|edge"
Method 3: Manual Command Execution
Prerequisites
Before you begin, ensure that:
- You have root access to the Gateway.
- The Gateway can access its container registry.
- If you use your own registry or mirror, copy the updated Webprobe image to the registry or mirror using the same tag before starting the update.
Update Webprobe
Log in to the Gateway as
gateway-adminand switch to the root user:sudo su -Check the Webprobe version:
Note
Replace<namespace>with the actual namespace.helm list -n <namespace> | grep webprobeThe CHART column must show
webprobe-21.2.6.Record the current Google Chrome and Microsoft Edge versions:
kubectl exec -n <namespace> webprobe-0 -- google-chrome --version kubectl exec -n <namespace> webprobe-0 -- microsoft-edge --versionApply the Webprobe update:
kubectl patch statefulset webprobe -n <namespace> --type=json -p='[{"op":"replace","path":"/spec/template/spec/containers/0/imagePullPolicy","value":"Always"}]'If the command returns
statefulset.apps/webprobe patched (no change), run the following command instead:kubectl rollout restart statefulset/webprobe -n <namespace>Wait until Webprobe is running again:
kubectl rollout status statefulset/webprobe -n <namespace> --timeout=600s kubectl get pod webprobe-0 -n <namespace>Confirm that the pod shows READY
1/1and STATUSRunning.Verify the updated Google Chrome and Microsoft Edge versions:
kubectl exec -n <namespace> webprobe-0 -- google-chrome --version kubectl exec -n <namespace> webprobe-0 -- microsoft-edge --versionConfirm that both versions are newer than the versions recorded in step 3.
Expected Versions:
| Package | Expected Version |
|---|---|
| Google Chrome | 158.0.8127.88 |
| Microsoft Edge | 158.0.4370.45 |