Skip to main content
Version: 3.7.0

Kubernetes Deployment (DaemonSet)

Preparation Before Deployment


Permission Requirements

  • Cluster administrator privileges are required (able to create DaemonSet, ConfigMap, ServiceAccount, etc.).

Environment Requirements

  • Kubernetes version ≥ 1.17
  • kubectl or oc command-line tool installed and configured.
  • Ensure all nodes can access the public addresses for SmartAgent download and reporting (oneupload.bonree.com).

Deployment Steps

  1. Log in to the Bonree ONE platform.

  2. Go to Configuration > Agent Installation > Kubernetes.

  3. Fill in the Cluster Name.

  4. Copy and execute the deployment command on the Kubernetes control node, for example:

    kubectl apply -f 'https://one.bonree.com/rest/apm/agentDown/download/yml/v2?os=os&arch=arch&smartAgentVersion=<smartAgentVersion>&smartGateVersion=&aid=<accountGUID>'

Uninstallation

# Delete SmartAgent DaemonSet
kubectl delete -n bonree-agent ds/bonree-smartagent

# [Optional/Required for switching to host deployment] Execute as root on the host to completely uninstall SmartAgent
sh /{agent-path}/bonree/apm/scripts/uninstall.sh
(Default installation path: /opt)
warning

After uninstalling SmartAgent, do not immediately delete agent residual and runtime directories on all monitored containers until they have restarted and monitoring is canceled, otherwise it may cause abnormal behavior in existing business containers.


Advanced Configuration

For advanced configuration of the SmartAgent YAML, please refer to: