turbot/kubernetes_insights

Query: pods_for_service

Usage

powerpipe query kubernetes_insights.query.pods_for_service

SQL

select
p.uid as uid
from
kubernetes_service as s,
kubernetes_pod as p
where
p.selector_search = s.selector_query
and s.context_name = p.context_name
and s.uid = $1;