The logs of control plane components can help you efficiently and securely manage and maintain clusters. ACK Edge allows you to collect the logs of control plane components from an ACK Edge cluster to a Simple Log Service project within your Alibaba Cloud account. You can manage and analyze the logs in Simple Log Service.
Prerequisites
Your Alibaba Cloud account has a sufficient quota of Logstores in Log Service.
Note
The default Logstore quota of an Alibaba Cloud account is 50. To increase the quota, Submit a ticket.
Enable log collection for control plane components
Log on to the ACK console.
In the left-side navigation pane of the ACK console, click Clusters.
On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
In the left-side navigation pane, choose .
Click the Logs of Control Plane Components tab. Then, click Enable Component Log Collection.
View the logs of control plane components
After you create the ACK Pro cluster, you can view the logs of the control plane components by using one of the following methods:
Method 1: View the logs of control plane components in the Log Service console.
Log on to the Log Service console.
In the Projects section, click the name of the Log Service project that is used for the cluster.
On the Log Storage page, click the Logstores tab on the left side of the page and click the Logstore where the logs of control plane components are stored. You can query the logs of the following components: kube-apiserver, kube-scheduler, and kube-controller-manager, and the cloud controller manager (CCM). For more information, see Overview of Log Service.
Method 2: View the logs of control plane components in the ACK console.
You can use the following entries to view the logs of the four control plane components.
Use the ACK console to view logs
Use the Simple Log Service console to view logs
You can use the following methods to view the logs of control plane components.
Log on to the Simple Log Service console.
In the Projects section, click the name of the Simple Log Service project that is used by the ACK cluster.
In the list, select the Logstore that stores the logs of control plane components.
Logstores for control plane components
ACK allows you to collect the logs of the following control plane components. The log of each component is stored in a separate Logstore. For more information about the components, see Kubernetes components.
Component | Logstore | Description |
Component | Logstore | Description |
kube-apiserver | apiserver | kube-apiserver is a component of the Kubernetes control plane that exposes the Kubernetes API. For more information, see kube-apiserver. |
kube-controller-manager | kcm | kube-controller-manager is the control center of a Kubernetes cluster and runs controller processes. For more information, see kube-controller-manager. |
kube-scheduler | scheduler | kube-scheduler is the default scheduler of a Kubernetes cluster. For more information, see kube-scheduler. |
Cloud Controller Manager | ccm | The CCM allows you to integrate Kubernetes with Alibaba Cloud services, such as Classic Load Balancer (CLB) and Virtual Private Cloud (VPC). CLB is formerly known as Server Load Balancer (SLB). The CCM manages the features, such as load balancing and cross-node communication, that are provided by these services. For more information, see Cloud Controller Manager. |
Disable log collection for control plane components
You can disable log collection for control plane components in the Operations menu in the ACK console.
In the left-side navigation pane of the cluster details page, choose .
Click the Logs of Control Plane Components tab. Then, click Close in the upper-right corner.
In the message that appears, click OK.