All Products
Search
Document Center

Container Compute Service:Collect control plane component logs from ACS clusters

Last Updated:Dec 19, 2024

Alibaba Cloud Container Compute Service (ACS) allows you to collect the logs of control plane components to Simple Log Service projects that belong to your Alibaba Cloud account. This topic describes how to collect the logs of control plane components from ACS clusters and how to view the collected logs.

Prerequisites

Your Alibaba Cloud account has a sufficient quota of Logstores in Simple Log Service.

Note

The default Logstore quota for an Alibaba Cloud account is 50. To increase the quota, submit a ticket to the Simple Log Service team.

Background information

The logs of control plane components help you manage your clusters in a secure and efficient manner. The logs of control plane components are shipped as log streams to the specified Simple Log Service project that belongs to your Alibaba Cloud account. You are charged for using the project on a pay-as-you-go basis. For more information, see Pay-by-feature.

Enable log collection for control plane components

You can enable log collection for control plane components by using one of the following methods:

Enable log collection for control plane components in an existing cluster

  1. Log on to the ACS console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, find the cluster that you want to manage and click its ID. In the left-side navigation pane of the cluster details page, choose Operations > Log Center.

  3. Click the Logs of Control Plane Components tab. Then, click Enable Component Log Collection.

View the logs of control plane components

After you create an ACS cluster, you can view the logs of control plane components by using one of the following methods:

Use the Simple Log Service console

  1. Log on to the Simple Log Service console.

  2. In the Projects section, click the name of the project that is used by the cluster.

  3. On the Log Storage page, select the Logstore used to store the logs of control plane components from the Logstores list.

Use the ACS console

You can use the following entries to view the logs of three control plane components.

  • Use the Cluster Information menu

    1. On the Cluster Information page, click the Basic Information tab. In the list, click View to the right of Log Collection for Control Plane Components.

    2. On the left side of the project details page, select a Logstore from the Logstores list to view the log of the control plane component.

  • Use the Operations menu.

    1. On the Clusters page, find the cluster that you want to manage and click its ID. In the left-side navigation pane of the cluster details page, choose Operations > Log Center.

    2. Click the Logs of Control Plane Components tab. You can select a control plane component to view its log.

Logstores that store the logs of control plane components

ACS allows you to collect the logs of the following control plane components to Logstores. The log of each component is stored in a separate Logstore. For more information about the components, see Kubernetes components.

Component

Logstore

Description

kube-apiserver

apiserver

kube-apiserver 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.

Cloud Controller Manager

ccm

The cloud controller manager (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 that are provided by these services, such as load balancing and cross-node communication. For more information about the CCM, see Cloud Controller Manager.

Disable log collection for control plane components

You can disable log collection for control plane components by using the Operations menu.

  1. On the Clusters page, find the cluster that you want to manage and click its ID. In the left-side navigation pane of the cluster details page, choose Operations > Log Center.

  2. Click the Logs of Control Plane Components tab. Then, click Close in the upper-right corner.

  3. In the message that appears, click OK.