turbot/kubernetes_insights

Query: replicasets_for_pod

Usage

powerpipe query kubernetes_insights.query.replicasets_for_pod

Steampipe Tables

SQL

select
pod_owner ->> 'uid' as uid
from
kubernetes_pod as p,
jsonb_array_elements(p.owner_references) as pod_owner
where
pod_owner ->> 'kind' = 'ReplicaSet'
and p.uid = $1;