Container Service for Kubernetes (ACK) and Log Service offer a component log feature. This feature lets you send control plane component logs from a professional ACK cluster to Log Service for querying and analysis. This topic describes the assets and billing for this feature and explains how to enable it in the ACK console.
Assets
-
Dedicated Project and LogStores
Important-
Before you disable the component log feature, do not delete the related Log Service Project and LogStores. Otherwise, logs cannot be delivered to Log Service.
-
If you previously used the pay-by-ingested-data billing mode, the system creates a dedicated LogStore that uses this billing mode by default. If you want to switch to the pay-by-feature billing mode, you can modify the LogStore configuration. For more information, see Manage a LogStore.
-
If you select an existing Project when you enable control plane component log collection for your professional ACK cluster, the system creates the following dedicated LogStores in that Project.
-
If you choose to create a new Project when you enable control plane component log collection, the system creates a Project named
k8s-log-<cluster-id>in the same region as your professional ACK cluster. The system also creates the following LogStores in the new Project.LogStore
Component
Description
apiserver-<cluster-id>kube-apiserver
Stores logs for the kube-apiserver component.
The kube-apiserver is a control plane component that exposes the Kubernetes API. For more information, see kube-apiserver.
ccm-<cluster-id>Cloud Controller Manager
Stores logs for the Cloud Controller Manager component.
Cloud Controller Manager integrates Kubernetes with Alibaba Cloud infrastructure services, such as Classic Load Balancer (CLB) (formerly Server Load Balancer (SLB)) and Virtual Private Cloud (VPC). This component manages features such as load balancing and cross-node communication. For more information, see Cloud Controller Manager.
scheduler-<cluster-id>kube-scheduler
Stores logs for the kube-scheduler component.
The kube-scheduler is the default scheduler for a Kubernetes cluster. For more information, see kube-scheduler.
kcm-<cluster-id>kube-controller-manager
Stores logs for the kube-controller-manager component.
The kube-controller-manager is the control center of a Kubernetes cluster and runs Kubernetes' core control loops. For more information, see kube-controller-manager.
-
-
Dedicated dashboard
This feature does not include a dedicated dashboard. You can create a custom dashboard to visualize query results. For more information, see Create a dashboard.
Billing
-
Container Service for Kubernetes (ACK) does not charge you for collecting control plane component logs from professional ACK clusters.
-
When a LogStore uses the pay-by-feature billing mode, Log Service charges for storage space, read traffic, requests, data processing, and data shipping after the logs are sent to the LogStore. For more information, see Billable items of the pay-by-feature billing mode.
-
When a LogStore uses the pay-by-ingested-data billing mode, Log Service charges based on the volume of ingested raw data and other factors after the logs are sent to the LogStore. For more information, see Billable items of the pay-by-ingested-data billing mode.
Enable component logs for ACK Pro clusters
New cluster
Log on to the Container Service Management Console.
-
On the Clusters page, click Create Kubernetes Cluster.
-
In the Component Configurations step on the Create Kubernetes Cluster page, find the Control Plane Component Logs section, select Enable, and then select the target Project. For more information about other parameters, see Create an ACK managed cluster.
Existing cluster
Log on to the Container Service Management Console.
-
On the Clusters page, click the name of your target cluster.
-
In the left-side navigation pane, choose .
-
On the Control Plane Component Logs tab, select the target Project, and then click Enable Component Log Collection.
You can select an existing Project or create a new one.
Related operations
|
Actions |
Description |
|
View logs |
You can view logs in the ACK console or the Log Service console. For more information, see View control plane component logs. |
|
Disable log collection |
On the Control Plane Component Logs tab, click Close. For more information, see Disable control plane component log collection. Important
After you disable log collection, the system does not automatically delete the associated Project or the logs that have already been collected. To avoid unnecessary charges, you must manually delete the Project in the Log Service console. For more information, see Delete a Project. |
Next steps
After your professional ACK cluster's control plane component logs are sent to Log Service, you can query, analyze, download, ship, and process them, or configure alerts in the Log Service console. For more information, see Common operations on logs of Alibaba Cloud services.