Collecting Control Plane Component Logs
Constraints
- The cluster version must be v1.21.7-r0 or later, v1.23.5-r0 or later, or 1.25.
- There is required LTS resource quota.
Control Plane Components
There are three control plane log types. Each log stream corresponds to a component of the Kubernetes control plane. To learn more about these components, see Kubernetes Components.
Log Type |
Component |
Log Stream |
Description |
---|---|---|---|
Control plane component logs |
kube-apiserver |
kube-apiserver-{{clusterID}} |
It exposes Kubernetes APIs. For more information, see kube-apiserver. |
kube-controller-manager |
kube-controller-manager-{{clusterID}} |
It manages controllers and embeds the core control loops shipped with Kubernetes. For more information, see kube-controller-manager. |
|
kube-scheduler |
kube-scheduler-{{clusterID}} |
It manages when and where to run Pods in your cluster. For more information, see kube-scheduler. |
Enabling Control Plane Logging
Enabling control plane logging during cluster creation
- Log in to the CCE console.
- Click Buy Cluster from the top menu.
- On the Add-on Configuration page, check the box of Enable logging for Control Plane Logs.
Enabling control plane logging for an existing cluster
- Log in to the CCE console and click the cluster name to access the details page. In the navigation pane, choose Logging.
- Click the Control Plane Logs tab, select one or more control plane components whose logs need to be collected, and click Enable.
Viewing Control Plane Component Logs
Viewing control plane component logs on the CCE console
- Log in to the CCE console and click the cluster name to access the details page. In the navigation pane, choose Logging.
- Click the Control Plane Logs tab and select the topic of logs to be viewed. For details about available control plane log types, see Control Plane Components.
Viewing control plane component logs on the LTS console
Disabling Control Plane Logging
- Log in to the CCE console and click the cluster name to access the details page. In the navigation pane, choose Logging.
- On the Control Plane Logs tab, click Configure Control Plane Component Logs in the upper right corner and modify the log settings.
- Determine whether to enable logging for each component and click OK.
After you disable control plane logging, logs are no longer written to the original log stream, but the existing logs will not be deleted and expenses may be incurred for this.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.