prom-proxy
A Helm chart for Kubernetes
About this chart
Prometheus Proxy
Prometheus Proxy by AppsCode - ByteBuilders Prometheus Proxy
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/prom-proxy --version=v2023.03.23
$ helm upgrade -i prom-proxy appscode/prom-proxy -n ace-system --create-namespace --version=v2023.03.23
Introduction
This chart deploys a Prometheus Proxy on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.21+
Installing the Chart
To install/upgrade the chart with the release name prom-proxy:
$ helm upgrade -i prom-proxy appscode/prom-proxy -n ace-system --create-namespace --version=v2023.03.23
The command deploys a Prometheus Proxy 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 the prom-proxy:
$ helm uninstall prom-proxy -n ace-system
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 prom-proxy chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| replicaCount | 1 | |
| registryFQDN | Docker registry fqdn used to pull app related images. Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image} | ghcr.io |
| image.registry | Docker registry used to pull app container image | appscode |
| image.repository | App container image | b3 |
| image.tag | Overrides the image tag whose default is the chart appVersion. | "" |
| image.pullPolicy | Always | |
| imagePullSecrets | [] | |
| nameOverride | "" | |
| fullnameOverride | "" | |
| serviceAccount.name | "" | |
| podAnnotations | {} | |
| podSecurityContext | {} | |
| securityContext | {} | |
| service.type | ClusterIP | |
| service.port | 80 | |
| resources | {} | |
| autoscaling.enabled | false | |
| autoscaling.minReplicas | 1 | |
| autoscaling.maxReplicas | 100 | |
| autoscaling.targetCPUUtilizationPercentage | 80 | |
| nodeSelector | {} | |
| tolerations | [] | |
| affinity | {} | |
| monitoring.agent | Name of monitoring agent (eg "prometheus.io/operator") | "" |
| monitoring.serviceMonitor.labels | Specify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is prometheus.io/operator. | {} |
| infra.storageClass.name | "standard" | |
| infra.objstore.provider | "" | |
| infra.objstore.mountPath | "" | |
| infra.badger.mountPath | /badger | |
| infra.invoice.mountPath | /billing | |
| settings.caProviderClass | "" | |
| settings.secretName.platformConfig | "" | |
| settings.secretName.grafanaConfig | "" | |
| settings.secretName.objstore | "" | |
| settings.secretName.nats | "" |
Specify each parameter using the --set key=value[,key=value] argument to helm upgrade -i. For example:
$ helm upgrade -i prom-proxy appscode/prom-proxy -n ace-system --create-namespace --version=v2023.03.23 --set replicaCount=1
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
$ helm upgrade -i prom-proxy appscode/prom-proxy -n ace-system --create-namespace --version=v2023.03.23 --values values.yaml
Deploy prom-proxy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prom-proxy 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 chartprom-proxy is pinned at v2023.3.23 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