This section provides detailed instructions on how to Upgrade the Kubernetes 2.0 Agent.
Updating the Kubernetes 2.0 Agent Using Helm
- To upgrade your Kubernetes 2.0 Agent, use the following command:
For example, if your release name ishelm upgrade <release-name> <helm-repo-url>
opsramp
, run:helm upgrade opsramp oci://us-docker.pkg.dev/opsramp-registry/agent-helm-charts/agent
The above command will upgrade the Agent to the latest helm version available in the OpsRamp Agent Helm Repository.
- If you need to upgrade the Agent to a specific Helm version, use the
--version
flag in the command.
For example, to upgrade to helm version0.1.0
, use:
helm upgrade opsramp oci://us-docker.pkg.dev/opsramp-registry/agent-helm-charts/agent --version 0.1.0
- If the
opsramp-master
agent pod does not restart automatically after the upgrade, you can manually restart it using:
kubectl rollout restart deployment opsramp-master
Changing Agent Configuration Keys
To modify any keys in the opsramp-agent-config
configMap, you can use the helm upgrade command with your existing agent/Helm version.
For example, if you want to change the proxy server and port, you can use the following command:
helm upgrade opsramp-agent durga-helm-repo/agent --version 0.1.0 --reuse-values --set agent.config.proxy.server="172.24.5.7",agent.config.proxy.port="3128"
Note
- Ensure that the
--version
flag matches the currently installed Helm version. - Always verify the changes after the upgrade to confirm they are applied correctly.