prometheus-node-exporter

by joaquinito2051

Helm chartv1.5.0App 0.18.0

A Helm chart for prometheus node-exporter

About this chart

Prometheus Node Exporter

TL;DR;

$ helm install <helm-repo>/prometheus-node-exporter

$ helm install stable/prometheus-node-exporter

Introduction

This chart bootstraps a prometheus node exporter deployment on a Kubernetes cluster using the Helm package manager.

Installing the Chart

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

$ helm install --name my-release <helm-repo>/prometheus-node-exporter

$ helm install --name my-release stable/prometheus-node-exporter The command deploys node exporter 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 deployment:

$ helm delete my-release

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

Configuration

The following table lists the configurable parameters of the Node Exporter chart and their default values.

ParameterDescriptionDefault
image.repositoryImage repositoryquay.io/prometheus/node-exporter
image.tagImage tagv0.18.0
image.pullPolicyImage pull policyIfNotPresent
extraArgsAdditional container arguments[]
extraHostVolumeMountsAdditional host volume mounts{}
podLabelsAdditional labels to be added to pods{}
rbac.createIf true, create & use RBAC resourcestrue
rbac.pspEnabledSpecifies whether a PodSecurityPolicy should be created.true
resourcesCPU/Memory resource requests/limits{}
service.typeService typeClusterIP
service.portThe service port9100
service.targetPortThe target port of the container9100
service.nodePortThe node port of the service
service.annotationsKubernetes service annotations{prometheus.io/scrape: "true"}
serviceAccount.createSpecifies whether a service account should be created.true
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template
serviceAccount.imagePullSecretsSpecify image pull secrets[]
securityContextSecurityContext{"runAsNonRoot": true, "runAsUser": 65534}
affinityA group of affinity scheduling rules for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate- effect: NoSchedule operator: Exists
priorityClassNameName of Priority Class to assign podsnil
endpointslist of addresses that have node exporter deployed outside of the cluster[]
hostNetworkWhether to expose the service to the host networktrue
prometheus.monitor.enabledSet this to true to create ServiceMonitor for Prometheus operatorfalse
prometheus.monitor.additionalLabelsAdditional labels that can be used so ServiceMonitor will be discovered by Prometheus{}
prometheus.monitor.namespacenamespace where servicemonitor resource should be createdthe same namespace as prometheus node exporter

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
  --set serviceAccount.name=node-exporter  \
    <helm-repo>/prometheus-node-exporter
$ helm install --name my-release \

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml <helm-repo>/prometheus-node-exporter

Deploy prometheus-node-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-node-exporter 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 chartprometheus-node-exporter is pinned at v1.5.0 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