turbot/kubernetes_insights

Query: replicaset_container_host_network_count

Usage

powerpipe query kubernetes_insights.query.replicaset_container_host_network_count

Steampipe Tables

SQL

select
count(name) as value,
'Host Network Access Enabled' as label,
case
count(name)
when 0 then 'ok'
else 'alert'
end as type
from
kubernetes_replicaset
where
template -> 'spec' ->> 'hostNetwork' = 'true';

Dashboards

The query is used in the dashboards: