Applications / Template
Kube State Metrics
Kubernetes cluster metrics
Overview
Deploy Kube State Metrics to generate metrics about the state of Kubernetes objects like deployments, nodes, and pods.
- Category
- Applications
- Source
- applications/helm/kube-state-metrics/kube-state-metrics.yaml
Prerequisites & dependencies
- You must deploy a cluster before deploying Kube State Metrics.
- You must deploy an application profile before deploying Kube State Metrics.
- This will deploy ksm operator.
Source manifest
applications/helm/kube-state-metrics/kube-state-metrics.yaml
# kube-state-metrics, from its Helm chart
#
# Exposes metrics about the cluster's Kubernetes objects for Prometheus.
#
# Apply: astroctl app apply -f kube-state-metrics.yaml
# Chart values: https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics
apiVersion: platform.astropulse.io/v1
kind: Application
spec:
name: kube-state-metrics
profileName: <YOUR_PROFILE_NAME>
namespace: monitoring
source:
type: Helm
helm:
repo:
repoURL: https://prometheus-community.github.io/helm-charts
chartName: kube-state-metrics
chartVersion: 5.26.0
Deployment guidance
Go straight to Console to create clusters, deploy applications, and manage supported resources. Templates and CLI commands are optional; not every GitHub manifest has an automatic import path.
Console — start directly
Open Console to create or connect infrastructure and deploy applications without running astroctl or copying this YAML first. This template may still require manual setup.
Open Consoleastroctl
Deploy Kube State Metrics
astroctl app apply -f applications/helm/kube-state-metrics/kube-state-metrics.yamlGet the Kube State Metrics name
astroctl app get kube-state-metricsGet the Kube State Metrics events
astroctl app events kube-state-metricsGet the Kube State Metrics logs
astroctl app logs kube-state-metricsGet the Kube State Metrics status
astroctl app status kube-state-metricsDelete the application
astroctl app delete kube-state-metricsReview placeholders and permissions before running commands. Nothing executes from this page.
Nova
Prefer to describe the goal? Ask Nova to review this example and help plan supported actions. Access, policy, and approvals still apply.