turbot/kubernetes_insights

Query: deployment_pods_detail

Usage

powerpipe query kubernetes_insights.query.deployment_pods_detail

SQL

select
pod.name as "Name",
pod.uid as "UID",
pod.restart_policy as "Restart Policy",
pod.node_name as "Node Name"
from
kubernetes_replicaset as rs,
jsonb_array_elements(rs.owner_references) as rs_owner,
kubernetes_pod as pod,
jsonb_array_elements(pod.owner_references) as pod_owner
where
rs_owner ->> 'uid' = $1
and pod_owner ->> 'uid' = rs.uid
and rs.context_name = pod.context_name
order by
pod.name;

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: