Control: 2.4 Ensure Log Service is enabled for Container Service for Kubernetes
Description
Log Service shall be connected with Kubernetes clusters of Alibaba Cloud Container Service to collect the audit log for central monitoring and analysis. You can simply enable Log Service when creating a cluster for log collection.
Remediation
Perform the following ensure the Log Service for Kubernetes clusters is enabled:
From Console
- Logon to ACK Console.
- Click
Clusters
in the left-side navigation pane and clickCreate Kubernetes Cluster
in the upper-right corner. - Scroll to the bottom of the page and select the
Using Log Service
check box. The log plug-in will be installed in the newly created Kubernetes cluster. - When you select the
Using Log Servic
e check box, project options are displayed. A project is the unit in Log Service to manage logs. - After you complete the configuration, click
Create
in the upper-right corner. - In the displayed dialog box, click
OK
.
Usage
Run the control in your terminal:
powerpipe control run alicloud_compliance.control.cis_v100_2_4
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run alicloud_compliance.control.cis_v100_2_4 --share
SQL
This control uses a named query:
manual_control