turbot/steampipe-mod-gcp-insights

Dashboard: GCP Kubernetes Cluster Dashboard

This dashboard answers the following questions:

  • How many clusters are in each project and location?
  • How many nodes are allocated across all clusters?
  • How many clusters have database encryption disabled?
  • How many clusters have node auto-repair disabled?
This dashboard contains 6 cards.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-gcp-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select GCP Kubernetes Cluster Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run gcp_insights.dashboard.kubernetes_cluster_dashboard --share

Queries

This dashboard uses the the following queries:
select
count(*) as value,
'Node Auto-Repair Disabled' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
gcp_kubernetes_cluster,
jsonb_array_elements(node_pools) as np
where
np -> 'management' -> 'autoRepair' <> 'true';

Tags