kube-prometheus
Prometheus Operator provides easy monitoring definitions for Kubernetes services and deployment and management of Prometheus instances.
About this chart
Prometheus Operator packaged by Bitnami
Prometheus Operator provides easy monitoring definitions for Kubernetes services and deployment and management of Prometheus instances.
Overview of Prometheus Operator
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
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 my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/kube-prometheus
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.16+
- Helm 3.2.0+
Installing the Chart
Add the bitnami charts repo to Helm:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
To install the chart with the release name my-release:
$ helm install my-release my-repo/kube-prometheus
The command deploys kube-prometheus 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
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override kube-prometheus.name template with a string (will prepend the release name) | "" |
fullnameOverride | String to fully override kube-prometheus.fullname template with a string | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
clusterDomain | Kubernetes cluster domain name | cluster.local |
Prometheus Operator Parameters
| Name | Description | Value |
|---|---|---|
operator.enabled | Deploy Prometheus Operator to the cluster | true |
operator.image.registry | Prometheus Operator image registry | docker.io |
operator.image.repository | Prometheus Operator image repository | bitnami/prometheus-operator |
operator.image.tag | Prometheus Operator image tag (immutable tags are recommended) | 0.58.0-debian-11-r8 |
operator.image.digest | Prometheus Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
operator.image.pullPolicy | Prometheus Operator image pull policy | IfNotPresent |
operator.image.pullSecrets | Specify docker-registry secret names as an array | [] |
operator.extraArgs | Additional arguments passed to Prometheus Operator | [] |
operator.command | Override default container command (useful when using custom images) | [] |
operator.args | Override default container args (useful when using custom images) | [] |
operator.lifecycleHooks | for the Prometheus Operator container(s) to automate configuration before or after startup | {} |
operator.extraEnvVars | Array with extra environment variables to add to Prometheus Operator nodes | [] |
operator.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for Prometheus Operator nodes | "" |
operator.extraEnvVarsSecret | Name of existing Secret containing extra env vars for Prometheus Operator nodes | "" |
operator.extraVolumes | Optionally specify extra list of additional volumes for the Prometheus Operator pod(s) | [] |
operator.extraVolumeMounts | Optionally specify extra list of additional volumeMounts for the Prometheus Operator container(s) | [] |
operator.sidecars | Add additional sidecar containers to the Prometheus Operator pod(s) | [] |
operator.initContainers | Add additional init containers to the Prometheus Operator pod(s) | [] |
operator.hostAliases | Add deployment host aliases | [] |
operator.serviceAccount.create | Specify whether to create a ServiceAccount for Prometheus Operator | true |
operator.serviceAccount.name | The name of the ServiceAccount to create | "" |
operator.serviceAccount.automountServiceAccountToken | Automount service account token for the server service account | true |
operator.serviceAccount.annotations | Annotations for service account. Evaluated as a template. Only used if create is true. | {} |
operator.schedulerName | Name of the Kubernetess scheduler (other than default) | "" |
operator.terminationGracePeriodSeconds | In seconds, time the given to the Prometheus Operator pod needs to terminate gracefully | "" |
operator.topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
operator.podSecurityContext.enabled | Enable pod security context | true |
operator.podSecurityContext.runAsUser | User ID for the container | 1001 |
operator.podSecurityContext.fsGroup | Group ID for the container filesystem | 1001 |
operator.containerSecurityContext.enabled | Enable container security context | true |
operator.containerSecurityContext.capabilities.drop | Linux Kernel capabilities which should be dropped | [] |
operator.containerSecurityContext.runAsNonRoot | Force the container to run as a non root user | true |
operator.containerSecurityContext.allowPrivilegeEscalation | Switch privilegeEscalation possibility on or off | false |
operator.containerSecurityContext.readOnlyRootFilesystem | Mount / (root) as a readonly filesystem | false |
operator.service.type | Kubernetes service type | ClusterIP |
operator.service.ports.http |
Deploy kube-prometheus with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-prometheus 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 chartkube-prometheus is pinned at v8.1.10 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