turbot/kubernetes_insights

Query: pod_container_cpu_detail

Usage

powerpipe query kubernetes_insights.query.pod_container_cpu_detail

Steampipe Tables

SQL

select
c ->> 'name' as "Name",
replace(c -> 'resources' -> 'limits' ->> 'cpu','m','') as "CPU Limit (m)",
replace(c -> 'resources' -> 'requests' ->> 'cpu','m','') as "CPU Request (m)"
from
kubernetes_pod,
jsonb_array_elements(containers) as c
where
uid = $1
order by
c ->> 'name';

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: