turbot/kubernetes_insights

Query: node_containers_count

Usage

powerpipe query kubernetes_insights.query.node_containers_count

SQL

select
count(c) as value,
'Containers' as label
from
kubernetes_node as n,
kubernetes_pod as p,
jsonb_array_elements(p.containers) as c
where
p.node_name = n.name
and p.context_name = n.context_name
and n.uid = $1;

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: