turbot/kubernetes_insights

Query: replicaset_replicas_detail

Usage

powerpipe query kubernetes_insights.query.replicaset_replicas_detail

Steampipe Tables

SQL

select
case when status_replicas <> 0 then 'status replicas' end as label,
case when status_replicas <> 0 then status_replicas end as value
from
kubernetes_replicaset
where
uid = $1
union all
select
case when fully_labeled_replicas <> 0 then 'fully labeled replicas' end as label,
case when fully_labeled_replicas <> 0 then fully_labeled_replicas end as value
from
kubernetes_replicaset
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_replicaset
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_replicaset
where
uid = $1;

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: