turbot/kubernetes_insights

Query: cronjob_container_host_pid_status

Usage

powerpipe query kubernetes_insights.query.cronjob_container_host_pid_status

Steampipe Tables

SQL

select
case
when job_template -> 'spec' -> 'template' -> 'spec' ->> 'hostPID' = 'true' then 'enabled'
else 'disabled'
end as status,
count(*)
from
kubernetes_cronjob
group by
status;

Dashboards

The query is used in the dashboards: