turbot/kubernetes_insights

Query: nodes_for_statefulset

Usage

powerpipe query kubernetes_insights.query.nodes_for_statefulset

SQL

select
n.uid as uid
from
kubernetes_pod as pod,
jsonb_array_elements(pod.owner_references) as pod_owner,
kubernetes_node as n
where
n.name = pod.node_name
and pod.context_name = n.context_name
and pod_owner ->> 'uid' = $1;