turbot/steampipe-mod-gcp-compliance

Control: GKE clusters should not use default network

Description

This control ensures that GKE clusters does not use default network.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.kubernetes_cluster_no_default_network

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.kubernetes_cluster_no_default_network --share

SQL

This control uses a named query:

select
self_link resource,
case
when network = 'default' then 'alarm'
else 'ok'
end as status,
case
when network = 'default' then title || ' using default network.'
else title || ' not using default network.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Tags