kube-state-metrics

by joaquinito2051

Helm chartv1.1.3App 1.9.7

kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects.

About this chart

kube-state-metrics

kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/kube-state-metrics

Introduction

This chart bootstraps kube-state-metrics on Kubernetes using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.0-beta3+

Installing the Chart

Add the bitnami charts repo to Helm:

$ helm repo add bitnami https://charts.bitnami.com/bitnami

To install the chart with the release name my-release:

$ helm install my-release bitnami/kube-state-metrics

The command deploys kube-state-metrics on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release release:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following table lists the configurable parameters of the kube-state-metrics chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil
global.labelsAdditional labels to apply to all resources{}
nameOverrideString to partially override kube-state-metrics.name template with a string (will prepend the release name)nil
fullnameOverrideString to fully override kube-state-metrics.fullname template with a stringnil
rbac.createWhether to create & use RBAC resources or nottrue
rbac.apiVersionVersion of the RBAC APIv1beta1
rbac.pspEnabledPodSecurityPolicytrue
serviceAccount.createSpecify whether to create a ServiceAccount for kube-state-metricstrue
serviceAccount.nameThe name of the ServiceAccount to createGenerated using the kube-state-metrics.fullname template
image.registrykube-state-metrics image registrydocker.io
image.repositorykube-state-metrics Image namebitnami/kube-state-metrics
image.tagkube-state-metrics Image tag{TAG_NAME}
image.pullPolicykube-state-metrics image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
extraArgsAdditional command line arguments to pass to kube-state-metrics{}
namespaceComma-separated list of namespaces to be enabled. Defaults to all namespaces``
collectors.certificatesigningrequestsEnable the certificatesigningrequests collectortrue
collectors.configmapsEnable the configmaps collectortrue
collectors.cronjobsEnable the cronjobs collectortrue
collectors.daemonsetsEnable the daemonsets collectortrue
collectors.deploymentsEnable the deployments collectortrue
collectors.endpointsEnable the endpoints collectortrue
collectors.horizontalpodautoscalersEnable the horizontalpodautoscalers collectortrue
collectors.ingressesEnable the ingresses collectortrue
collectors.jobsEnable the jobs collectortrue
collectors.limitrangesEnable the limitranges collectortrue
collectors.mutatingwebhookconfigurationsEnable the mutatingwebhookconfigurations collectortrue
collectors.namespacesEnable the namespaces collectortrue
collectors.networkpoliciesEnable the networkpolicies collectortrue
collectors.nodesEnable the nodes collectortrue
collectors.persistentvolumeclaimsEnable the persistentvolumeclaims collectortrue
collectors.persistentvolumesEnable the persistentvolumes collectortrue
collectors.poddisruptionbudgetsEnable the poddisruptionbudgets collectortrue
collectors.podsEnable the pods collectortrue
collectors.replicasetsEnable the replicasets collectortrue
collectors.replicationcontrollersEnable the replicationcontrollers collectortrue
collectors.resourcequotasEnable the resourcequotas collectortrue
collectors.secretsEnable the secrets collectortrue
collectors.servicesEnable the services collectortrue
collectors.statefulsetsEnable the statefulsets collectortrue
collectors.storageclassesEnable the storageclasses collectortrue
collectors.verticalpodautoscalersEnable the verticalpodautoscalers collectorfalse
collectors.validatingwebhookconfigurationsEnable the validatingwebhookconfigurations collectorfalse
collectors.volumeattachmentsEnable the volumeattachments collectortrue
securityContext.enabledEnable security contexttrue
securityContext.runAsUserUser ID for the container1001
securityContext.fsGroupGroup ID for the container filesystem1001
service.typeKubernetes service typeClusterIP
service.portkube-state-metrics service port8080
service.clusterIPSpecific cluster IP when service type is cluster IP. Use None for headless servicenil
service.nodePortKubernetes Service nodePortnil
service.loadBalancerIPloadBalancerIP if service type is LoadBalancernil
`service.loadBalance

Deploy kube-state-metrics with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-state-metrics on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkube-state-metrics is pinned at v1.1.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply