Control: GKE clusters release should be zone redundant
Description
This control ensures that GKE clusters is located in at least three zones.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.kubernetes_cluster_zone_redundant
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.kubernetes_cluster_zone_redundant --share
SQL
This control uses a named query:
select self_link resource, case when zone is not null and jsonb_array_length(locations) >= 3 then 'ok' else 'alarm' end as status, case when zone is not null and jsonb_array_length(locations) >= 3 then title || ' zone redundant.' else title || ' not zone redundant.' end as reason , location as location, project as projectfrom gcp_kubernetes_cluster;