turbot/steampipe-mod-gcp-compliance

Control: GKE clusters HTTP load balancing should be enabled

Description

This control ensures that GKE clusters HTTP load balancing is enabled. This control is non-complaint if HTTP load balancing is disabled.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.kubernetes_cluster_http_load_balancing_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
self_link resource,
case
when addons_config -> 'HttpLoadBalancing' ->> 'Disabled' = 'false' then 'ok'
else 'alarm'
end as status,
case
when addons_config -> 'HttpLoadBalancing' ->> 'Disabled' = 'false' then title || ' HTTP load balancing enabled.'
else title || ' HTTP load balancing disabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Tags