This topic describes how to enable Log Service for a serverless Kubernetes (ASK) cluster.

Prerequisites

An ASK cluster is created. For more information, see Create an ASK cluster.

Procedure

To enable Log Service for an ASK cluster, perform the following operations.

  1. Run the following command to modify the eci-profile file:
    kubectl -n kube-system edit configmap eci-profile
  2. Set the enableLogController parameter in the eci-profile file to true, save the file, and exit.
    apiVersion: v1
    data:
      #...
      enableLogController: "true"
      #...
    kind: ConfigMap
    metadata:
      name: eci-profile
      namespace: kube-system
  3. Check whether Log Service is enabled for the ASK cluster.
    1. Log on to the Log Service console.
    2. In the Projects section, check whether a project is created for the ASK cluster.

      If a project is created for the ASK cluster as shown in the following figure, Log Service is enabled for the ASK cluster.

      project

      ASK can import the standard output streams and log files of application pods to Log Service.