turbot/kubernetes_insights

Query: replicaset_ha

Usage

powerpipe query kubernetes_insights.query.replicaset_ha

SQL

select
case
when replicas < 3 then 'non-HA'
else 'HA'
end as status,
count(r.name)
from
kubernetes_replicaset as r,
kubernetes_namespace as n
where
r.namespace = n.name
and r.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: