Collecting control plane component logs helps you operate and maintain your cluster more securely and efficiently. ACK Edge supports collecting these logs from managed clusters. The logs can be ingested into a log project in Simple Log Service (SLS) in your own account for centralized management and analysis.
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 navigation pane, click Clusters.
-
On the Clusters page, click the name of your cluster. In the left navigation pane, click .
-
On the Log Center page, click the Control Plane Component Logs tab, and then click Enable Component Log Collection.
After the installation is complete, you are automatically redirected to the control plane component logs page.
View control plane component logs
You can view cluster control plane component logs in the ACK console or the SLS console. For more information about the query syntax, see Query and analyze logs.
View control plane component logs
View in the Container Service console
Use either of the following methods to view control plane component logs:
View control plane component logs from the Cluster Information entry point.
On the cluster information page, click the Basic Information tab, and then click the link to the right of Control Plane Component Logs.
In the upper-left corner of the page, select a control plane component to view its logs.
View control plane component logs from the Operations entry point.
In the left-side navigation pane of the cluster management page, choose Operations > Log Center, and then click the Control Plane Component Logs tab.
In the upper-left corner of the page, select a control plane component to view its logs.
View in the Simple Log Service console
Log on to the Simple Log Service console.
In the Projects section, click the name of the SLS project that corresponds to your cluster.
On the Log Storage > Logstore tab, click the Logstore of the component whose logs you want to view. For the mapping between components and Logstores, see Control plane component Logstore descriptions.
Control plane component Logstore descriptions
ACK Edge clusters support collecting logs for the following control plane components and add-ons: Each SLS Logstore corresponds to one component or add-on. For more information about Kubernetes control plane components, see Kubernetes components.
Component | Logstore | Collected by default | Description |
apiserver | Yes | The kube-apiserver component is part of the control plane and exposes the Kubernetes API. | |
kcm | Yes | The kube-controller-manager component is the internal management control center of the Kubernetes cluster and embeds the core control loops of the Kubernetes release. | |
scheduler | Yes | The kube-scheduler component is the default scheduler of the Kubernetes cluster. | |
ccm | Yes | Cloud Controller Manager (CCM) integrates Kubernetes with Alibaba Cloud services such as Classic Load Balancer (CLB, formerly Server Load Balancer (SLB)) and Virtual Private Cloud (VPC). Its features include load balancing management and cross-node communication. | |
alb | Yes | ALB Ingress is based on Alibaba Cloud Application Load Balancer (ALB) and provides a unified ingress for Services in the cluster. | |
controlplane-events | controlplane-events | Yes | The controlplane-events component delivers O&M events from the cluster control plane, such as out-of-memory (OOM) killed events. |
cluster-autoscaler | No | cluster-autoscaler is the ACK node auto scaling add-on. | |
ack-goatscaler | No | ack-goatscaler is the ACK instant elasticity add-on for nodes. | |
kuberay-operator | No | kuberay-operator builds on the community KubeRay component and combines it with the scheduling, elastic quota, and resource priority scheduling capabilities of ACK to help you manage and use Ray clusters more easily. |
If a component is not collected by default and you need to collect its logs, enable log collection for that component by updating the list of components for log collection.
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.