prometheus-operated
by arldka
A Helm chart that deploys a Prometheus instance using the prometheus operator
About this chart
Prometheus Operated Chart
Description
A Helm chart that deploys a Prometheus instance using the prometheus operator
Prerequisites
Requirements
Kubernetes: >=1.22.0-0
Get Helm Repository Info
helm repo add arldka https://arldka.github.io/helm-charts
helm repo update
See helm repo for command documentation.
Install Helm Chart
helm install [RELEASE_NAME] arldka/prometheus-operated
See configuration below.
See helm install for command documentation.
Upgrading Chart
helm upgrade [RELEASE_NAME] arldka/prometheus-operated
With Helm v3, CRDs created by this chart are not updated by default and should be manually updated. Consult also the Helm Documentation on CRDs.
See helm upgrade for command documentation.
Upgrading an existing Release to a new major version
A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.
Limitations
Because the operator can only run as a single pod, there is potential for this component failure to cause rule deployment failure. Because this risk is outweighed by the benefit of having validation, the feature is enabled by default.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalScrapeConfigs | list | [] | |
| annotations | object | {} | |
| enableAdminAPI | bool | false | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| instanceName | string | "default" | |
| nodeSelector | object | {} | |
| paused | bool | false | |
| resources | object | {} | |
| retention | string | "7d" | |
| securityContext.fsGroup | int | 65534 | |
| securityContext.runAsGroup | int | 65534 | |
| securityContext.runAsNonRoot | bool | true | |
| securityContext.runAsUser | int | 65534 | |
| service.annotations | object | {} | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| storageCapacity | string | "30Gi" | |
| storageClassName | string | "" | |
| version | string | "v2.44.0" |
Deploy prometheus-operated with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-operated 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-operated is pinned at v0.3.0 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