The control plane component logs of an ACK Serverless cluster are collected into a log project in Simple Log Service (SLS) under your account. Managing and analyzing the logs in one place helps you operate the cluster more securely and efficiently.
Prerequisites
Ensure that you have:
-
A sufficient Logstore quota in SLS
-
An understanding of SLS pay-as-you-go billing — collected logs incur SLS charges
High-volume components such as kube-apiserver can generate significant log data. To manage costs, enable collection only for the components you need.
Enable control plane component log collection
Log on to the ACK console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of your cluster. In the left-side navigation pane, choose .
On the Log Center page, click the Control Plane Component Logs tab, and then click Enable Component Log Collection.
The installation takes a short time to complete, after which you are automatically redirected to the control plane component logs page.
View control plane component logs
View control plane component logs in the ACK console or in the SLS console.
An ACK Serverless cluster supports querying the logs of the following three control plane components: kube-apiserver, kube-controller-manager, and Cloud Controller Manager. For the Logstore that corresponds to each component, see Logstores for control plane components. For more information, see official SLS documentation.
ACK console
Use either of the following methods to view the control plane component logs:
From the Cluster Information entry:
On the cluster details page, click the Cluster Resources tab. In the list, click the log project link that corresponds to the control plane component logs.
On the Log Storage page, select the Logstore of the control plane component that you want from the Logstore list in the left pane.
From the Operations entry:
In the left-side navigation pane of the cluster details page, choose .
Click the Control Plane Logs tab, and then select the component whose logs you want to view.
SLS console
Log on to the Simple Log Service console.
In the Projects section, click the name of the Log Project that corresponds to your cluster.
Choose , and then click the Logstore that you want.
Logstores for control plane components
An ACK Serverless cluster supports log collection for the following three control plane components. Each Logstore in SLS corresponds to one Kubernetes control plane component. For more information about these components, see Kubernetes Components.
Component | Logstore | Description |
kube-apiserver | apiserver | The kube-apiserver component on the control plane exposes the Kubernetes API. For more information, see kube-apiserver. |
kube-controller-manager | kcm | The kube-controller-manager component is the management and control center of a Kubernetes cluster. It embeds the core control loops shipped with Kubernetes releases. For more information, see kube-controller-manager. |
Cloud Controller Manager | ccm | Cloud Controller Manager integrates Kubernetes with Alibaba Cloud services, such as Classic Load Balancer (CLB, formerly SLB) and Virtual Private Cloud (VPC). It manages load balancing and cross-node communication. For more information, see Cloud Controller Manager. |
Disable log collection
-
On the Clusters page, click the name of the target cluster. In the left-side pane, choose Operations > Log Center.
-
Click the Control Plane Component Logs tab, then click Close.