turbot/gcp_compliance

Query: kubernetes_cluster_private_nodes_configured

Usage

powerpipe query gcp_compliance.query.kubernetes_cluster_private_nodes_configured

Steampipe Tables

SQL

select
self_link resource,
case
when private_cluster_config ->> 'enablePrivateNodes' = 'false'
or private_cluster_config -> 'enablePrivateNodes' is null then 'alarm'
else 'ok'
end as status,
case
when private_cluster_config ->> 'enablePrivateNodes' = 'false'
or private_cluster_config -> 'enablePrivateNodes' is null then title || ' private nodes not configured.'
else title || ' private nodes configured.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Controls

The query is being used by the following controls: