turbot/steampipe-mod-kubernetes-insights

Dashboard: Kubernetes Cluster Role Detail

This dashboard answers the following questions for each ClusterRole:

  • What relationships does the Cluster Role have with other resources?
  • How is my Cluster Role configured?
  • What labels and annotations are applied?
  • What rules are associated to the Cluster Role?
This dashboard contains 1 card, 1 graph, 1 input and 4 tables.

Usage

Install the mod:

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

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select Kubernetes Cluster Role Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run kubernetes_insights.dashboard.cluster_role_detail --share

Queries

This dashboard uses the the following queries:
with jsondata as (
select
annotations::json as annotation
from
kubernetes_cluster_role
where
uid = $1
)
select
key as "Key",
value as "Value"
from
jsondata,
json_each_text(annotation)
order by
key;
{
"$1": "uid"
}

Tags