turbot/digitalocean_insights

Query: kubernetes_cluster_nodes_for_kubernetes_cluster

Usage

powerpipe query digitalocean_insights.query.kubernetes_cluster_nodes_for_kubernetes_cluster

SQL

select
d.urn as node_urn
from
digitalocean_kubernetes_cluster as k,
jsonb_array_elements(k.node_pools) as node_pool,
jsonb_array_elements(node_pool -> 'nodes') as node,
digitalocean_droplet as d
where
d.id::text = node ->> 'droplet_id'
and k.urn = $1;