prometheus-operator

by Helm

Helm chartv0.2.0

Provides easy monitoring definitions for Kubernetes services, and deployment and management of Prometheus instances.

About this chart

prometheus-operator

Installs prometheus-operator to create/configure/manage Prometheus clusters atop Kubernetes.

TL;DR;

$ helm install opsgoodness/prometheus-operator

Introduction

This chart bootstraps a prometheus-operator deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.4+ with Beta APIs & ThirdPartyResources enabled

Installing the Chart

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

$ helm install opsgoodness/prometheus-operator --name my-release

The command deploys prometheus-operator 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 tables lists the configurable parameters of the prometheus-operator chart and their default values.

ParameterDescriptionDefault
global.hyperkube.repositoryHyperkube imagequay.io/coreos/hyperkube
global.hyperkube.tagHyperkube image tagv1.5.3_coreos.0
global.hyperkube.pullPolicyHyperkube image pull policyIfNotPresent
image.repositoryImagequay.io/coreos/prometheus-operator
image.tagImage tagv0.6.0
image.pullPolicyImage pull policyIfNotPresent
nodeSelectorNode labels for pod assignment{}
resourcesPod resource requests & limits{}
sendAnalyticsCollect & send anonymous usage statisticstrue

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

$ helm install opsgoodness/prometheus-operator --name my-release --set sendAnalytics=true

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

$ helm install opsgoodness/prometheus-operator --name my-release -f values.yaml

Tip: You can use the default values.yaml

Deploy prometheus-operator with OpenTenant

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