CCE Log Operator Description
Updated at:2025-10-27
Component introduction
The CCE logging component allows users to define log rules using CRD and add relevant environment variables to containers to enable container log collection.
Component function
- It integrates with the Baidu AI Cloud Log Service (BLS) to facilitate log collection and storage.
- Users can add the
cce_log_internalenvironment variable to containers to collect logs from specified files, and use thecce_log_stdoutenvironment variable to collect logs output by the container terminal.
Application scenarios
It collects logs of cluster control plane components and service logs. For more information, please refer to Log Overview.
Usage restrictions
The Kubernetes version for the cluster must be 1.16 or above.
Install component
- Sign in to the Baidu AI Cloud official website and enter the management console.
- Select Product Services > Cloud Native > Cloud Container Engine (CCE) to enter the CCE management console.
- Click Cluster Management - Cluster List in the left navigation bar.
- Click on the target cluster name in the Cluster List page to navigate to the cluster management page.
- On the Cluster Management page, click O&M & Management > Component Management.
- Select the CCE Log Operator component from the component management list and click Install
- Click the OK button to complete the component installation.
Deployment status
When the CCE Log Operator component is installed, the following objects will be deployed in the Kubernetes cluster:
| Object name | Belonging to namespace | Resource usage | Types |
|---|---|---|---|
| cce-log-operator | kube-system | CPU:100m Memory:10Mi | Deployment |
| cce-log-agent-v2 | kube-system | CPU:100m Memory:100Mi | DaemonSet |
| logrules.cce.io | - | - | CRD |
| logconfig.cce.baidubce.com | - | - | CRD |
Version records
| Version No. | Cluster version compatibility | Update time | Update content |
|---|---|---|---|
| 2.3.1 | CCE/v1.18+ | 2022.12.05 | Support BLS |
| 2.2.3 | CCE/v1.18+ | 2022.10.17 | Upgrade CRD version v1beta1=>v1 |
| 2.2.2 | CCE/v1.18+ | 2022.06.27 | Code refactoring |
| 2.2.1 | CCE/v1.18+ | 2021.11.15 | Adapt to containerd |
| 2.0.0 | CCE/v1.18+ | 2021.07.05 | First release |
