turbot/steampipe-mod-kubernetes-insights

Dashboard: Kubernetes Container Detail

This dashboard answers the following questions for each container:

  • What relationships does the container have with other resources?
  • How is my container configured?
  • Is my container privileged or not?
  • What volume mounts are applied?
This dashboard contains 5 cards, 1 graph, 1 input and 3 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 Container Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

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

Queries

This dashboard uses the the following queries:
select
case when c -> 'securityContext' ->> 'allowPrivilegeEscalation' = 'true' then 'Enabled' else 'Disabled' end as value,
'Privilege Escalation' as label,
case when c -> 'securityContext' ->> 'allowPrivilegeEscalation' = 'true' then 'alert' else 'ok' end as type
from
kubernetes_pod,
jsonb_array_elements(containers) as c
where
concat(c ->> 'name',name) = $1;
{
"$1": "name"
}

Tags