You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Installation and upgrade
Upgrade LogCollector (Kubernetes cluster)
Copy page
Download PDF
Upgrade LogCollector (Kubernetes cluster)
To ensure stable and efficient log collection, we recommend that you upgrade LogCollector promptly and always use the latest version of LogCollector to collect Kubernetes cluster logs. LogCollector installed in a Kubernetes cluster only supports manual upgrade. This topic describes how to upgrade LogCollector in a Kubernetes cluster.​
  • ​
    kubectl rollout restart daemonset -n ${namespace} logcollector​
    ​
Manual upgrade​
You can run the following command in your Kubernetes cluster to upgrade the LogCollector version.​
​
kubectl -n <namespace> set image <workload-type> <workload-name> <container-name>=<image>​
​
The parameters are described below:​
​
Parameters​
Example value​
Notice​
namespace​
kube-system​
LogCollector namespace.​
workload-type​
daemonsets​
LogCollector workload type.​
workload-name​
logcollector​
Name of the LogCollector workload​
workload-name​
logcollector​
LogCollector container name. If the LogCollector is installed based on Install LogCollector (DaemonSet deployment), Install LogCollector (Sidecar deployment)If you installed LogCollector following the TLS official documentation, set the name to logcollector.​
image​
logcollector-cn-beijing.cr.volces.com/logcollector/logcollector:latest​
LogCollector image address. For the latest version of the image, see LogCollector image address.​
​
Verify the upgrade result​
  1. Run the following command in your Kubernetes cluster to check the status of LogCollector pods. If all LogCollector pods are in running state, the upgrade is successful.​
  • ​
    kubectl get pod -n ${namespace}​
    ​
  1. View the LogCollector version number for the specified machine in the host group on the console. If the version number becomes the latest version, the LogCollector is upgraded successfully.​
  • ​​​
​
​
Last updated: 2026.03.25 16:56:29