prometheus-operator
The Prometheus Operator for Kubernetes provides easy monitoring definitions for Kubernetes services and deployment and management of Prometheus instances.
About this chart
Prometheus Operator
Prometheus Operator provides easy monitoring definitions for Kubernetes services and deployment and management of Prometheus instances.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/prometheus-operator
Introduction
This chart bootstraps Prometheus Operator on Kubernetes using the Helm package manager.
In the default configuration the chart deploys the following components on the Kubernetes cluster:
IMPORTANT
Only one instance of the Prometheus Operator component should be running in the cluster. If you wish to deploy this chart to manage multiple instances of Prometheus in your Kubernetes cluster, you have to disable the installation of the Prometheus Operator component using the operator.enabled=false chart installation argument.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.12+
- Helm 2.12+ or Helm 3.0-beta3+
Installing the Chart
Add the bitnami charts repo to Helm:
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
To install the chart with the release name my-release:
$ helm install my-release bitnami-azure/prometheus-operator
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.
Tip: List all releases using
helm list
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. Use the flag --purge to delete all history too.
Parameters
The following table lists the configurable parameters of the Prometheus Operator chart and their default values.
Global Parameters
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
global.labels | Additional labels to apply to all resource | {} |
nameOverride | String to partially override prometheus-operator.name template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override prometheus-operator.fullname template with a string | nil |
rbac.create | Wether to create & use RBAC resources or not | true |
rbac.apiVersion | Version of the RBAC API | v1beta1 |
rbac.pspEnabled | PodSecurityPolicy | true |
Prometheus Operator Parameters
| Parameter | Description | Default |
|---|---|---|
operator.enabled | Deploy Prometheus Operator to the cluster | true |
operator.image.registry | Prometheus Operator image registry | docker.io |
operator.image.repository | Prometheus Operator Image name | bitnami/prometheus-operator |
operator.image.tag | Prometheus Operator Image tag | {TAG_NAME} |
operator.image.pullPolicy | Prometheus Operator image pull policy | IfNotPresent |
operator.image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
operator.serviceAccount.create | Specify whether to create a ServiceAccount for Prometheus Operator | true |
operator.serviceAccount.name | The name of the ServiceAccount to create | Generated using the prometheus-operator.operator.fullname template |
operator.schedulerName | Name of the k8s scheduler (other than default) | nil |
operator.securityContext.enabled | Enable security context | true |
operator.securityContext.fsGroup | Group ID for the container filesystem | 1001 |
operator.securityContext.runAsUser | User ID for the container | 1001 |
operator.service.type | Kubernetes service type | ClusterIP |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprometheus-operator is pinned at v0.29.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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