turbot/kubernetes_insights

Query: deployment_ha

Usage

powerpipe query kubernetes_insights.query.deployment_ha

SQL

select
case
when replicas < 3 then 'non-HA'
else 'HA'
end as status,
count(d.name)
from
kubernetes_deployment as d,
kubernetes_namespace as n
where
d.namespace = n.name
and d.context_name = n.context_name
and n.uid = $1
group by
status
order by
status;

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: