Control: Ensure Container-Optimized OS (cos) is used for Kubernetes engine clusters
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.gke_container_optimized_os
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.gke_container_optimized_os --share
SQL
This control uses a named query:
select self_link resource, case when node_config ->> 'ImageType' = 'COS_CONTAINERD' then 'ok' else 'alarm' end as status, case when node_config ->> 'ImageType' = 'COS_CONTAINERD' then title || ' Container-Optimized OS(COS) is used.' else title || ' Container-Optimized OS(COS) not used.' end as reason , location as location, project as projectfrom gcp_kubernetes_cluster;