turbot/kubernetes_insights

Query: statefulset_replicas_detail

Usage

powerpipe query kubernetes_insights.query.statefulset_replicas_detail

Steampipe Tables

SQL

select
case when current_replicas <> 0 then 'current replicas' end as label,
case when current_replicas <> 0 then current_replicas end as value
from
kubernetes_stateful_set
where
uid = $1
union all
select
case when updated_replicas <> 0 then 'updated replicas' end as label,
case when updated_replicas <> 0 then updated_replicas end as value
from
kubernetes_stateful_set
where
uid = $1
union all
select
case when ready_replicas <> 0 then 'ready replicas' end as label,
case when ready_replicas <> 0 then ready_replicas end as value
from
kubernetes_stateful_set
where
uid = $1
union all
select
case when available_replicas <> 0 then 'available replicas' end as label,
case when available_replicas <> 0 then available_replicas end as value
from
kubernetes_stateful_set
where
uid = $1;

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: