Container Service for Kubernetes (ACK) clusters are integrated with Log Service. When you create an ACK cluster, you can enable Log Service by installing the logtail-ds component. After Log Service is enabled, it collects logs from the containers of the ACK cluster. The logs include the standard output and text files from the containers. This topic describes how to install and use logtail-ds.

Step 1: Set permissions

Before you can install the component in a register cluster, you must create the AccessKey information to authenticate your requests and enable access to cloud resources. Before you create the AccessKey information, you must create a Resource Access Management (RAM) user and grant the RAM user permissions to access cloud resources.

  1. Create a RAM user.

    For more information, see Create a RAM user.

  2. Create a permission policy.
    For more information, see Create a custom policy.
    The following code block shows the content of the permission policy for logtail-ds:
        "Version": "1",
        "Statement": [
                "Action": [
                "Resource": [
                "Effect": "Allow"
  3. Grant permissions to the RAM user

    For more information, see Grant permissions to a RAM user.

  4. Create the AccessKey information for the RAM user.

    For more information, see Obtain an AccessKey pair.

Run the following command to create the Secret that is required to use logtail-ds:
kubectl -n kube-system create secret generic alibaba-addon-secret --from-literal='access-key-id=<your access key id>' --from-literal='access-key-secret=<your access key secret>'

Replace <your access key id> and <your access key secret> in the preceding command with the AccessKey information that you have obtained.

Step 2: Install logtail-ds

  1. Log on to the ACK console.
  2. On the Clusters page, find the cluster that you want to manage and select Manage System Components from the More drop-down list in the Actions column.
  3. On the Add-ons page, find the logtail-ds component and click Install for the component.

Step 3: Enable Log Service

For more information, see Use Log Service to collect container logs.