perses-operator
by Perses
A Helm chart for the Perses Operator - manages Perses instances and dashboards on Kubernetes
About this chart
perses-operator
A Helm chart for the Perses Operator - manages Perses instances and dashboards on Kubernetes
Prerequisites
- Kubernetes 1.26+
- Helm 3.x
- cert-manager installed in the cluster (required when
certManager.enable=true, which is the default)
Installing the Chart
To install the chart with the release name perses-operator (requires cert-manager):
helm repo add perses https://perses.github.io/helm-charts
helm repo update
helm install perses-operator perses/perses-operator \
--namespace perses --create-namespace
To install without cert-manager (not recommended for production):
helm install perses-operator perses/perses-operator \
--namespace perses --create-namespace \
--set certManager.enable=false
Note: When cert-manager is disabled, the chart generates a self-signed TLS certificate for the webhook server. CRD conversion webhooks (v1alpha1 <-> v1alpha2) are also disabled, so only
v1alpha2resources can be used. This is suitable for development and testing but not recommended for production.
Uninstalling the Chart
To uninstall/delete the perses-operator deployment:
helm delete perses-operator --namespace perses
Note: CRDs are kept by default when uninstalling. To remove them, set
crd.keep=falsebefore uninstalling or delete them manually.
Integrating with kube-prometheus-stack
Prerequisites
Install kube-prometheus-stack if not already present:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack \
--namespace monitoring --create-namespace
Enabling monitoring for perses-operator
If perses-operator is already installed, upgrade it to enable Prometheus monitoring:
helm upgrade perses-operator perses/perses-operator \
--namespace perses \
--set prometheus.enable=true \
--set prometheus.rules.enable=true \
--set prometheus.labels.release=kube-prometheus-stack \
--set prometheus.rules.labels.release=kube-prometheus-stack \
--set prometheus.serviceAccount.name=kube-prometheus-stack-prometheus \
--set prometheus.serviceAccount.namespace=monitoring
For a fresh install with monitoring enabled from the start:
helm install perses-operator perses/perses-operator \
--namespace perses --create-namespace \
--set prometheus.enable=true \
--set prometheus.rules.enable=true \
--set prometheus.labels.release=kube-prometheus-stack \
--set prometheus.rules.labels.release=kube-prometheus-stack \
--set prometheus.serviceAccount.name=kube-prometheus-stack-prometheus \
--set prometheus.serviceAccount.namespace=monitoring
prometheus.enablecreates a ServiceMonitor for scraping operator metrics via kube-rbac-proxyprometheus.rules.enablecreates a PrometheusRule with operator alerting rulesprometheus.serviceAccountconfigures RBAC so the Prometheus instance can access/metricsthrough kube-rbac-proxy
TLS configuration
When certManager.enable=true (default), the metrics endpoint uses a cert-manager issued certificate for TLS. The ServiceMonitor is configured to verify the server certificate against the CA, providing secure scraping without insecureSkipVerify.
When certManager.enable=false, the ServiceMonitor uses insecureSkipVerify: true since kube-rbac-proxy will use its own self-signed certificate.
Label selectors
The example above uses prometheus.labels.release=kube-prometheus-stack which matches the default kube-prometheus-stack selector. If your kube-prometheus-stack release has a different name, replace it accordingly.
If kube-prometheus-stack is configured with nil selectors (serviceMonitorSelectorNilUsesHelmValues=false, ruleSelectorNilUsesHelmValues=false), the prometheus.labels and prometheus.rules.labels values can be omitted.
Upgrading
To 0.4.0
Starting from this release, the chart version is aligned with the perses-operator appVersion. This means chart version 0.4.0 tracks perses-operator v0.4.0. Previous chart versions (0.1.x, 0.2.x) used independent versioning.
To 0.2.0
This release updates CRDs to default to perses.dev/v1alpha2. The v1alpha1 API version is deprecated and will be removed in a future release. Existing v1alpha1 resources are automatically converted via the conversion webhook when cert-manager is enabled. Users should migrate their manifests to use v1alpha2.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| certManager | object | {"enable":true} | Cert-manager integration for TLS certificates. Required for webhook and metrics endpoint certificates. |
| certManager.enable | bool | true | Enable cert-manager integration |
| crd | object | {"enable":true,"keep":true} | Custom Resource Definitions |
| crd.enable | bool | true | Install CRDs with the chart |
| crd.keep | bool | true | Keep CRDs when uninstalling |
| kubeRbacProxy | object | {"image":{"repository":"quay.io/brancz/kube-rbac-proxy","tag":"v0.23.1"},"resources":{"limits":{"cpu":"500m","memory":"128Mi"},"requests":{"cpu":"5m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}} | Kube RBAC Proxy sidecar configuration |
| kubeRbacProxy.image.repository | string | "quay.io/brancz/kube-rbac-proxy" | Kube RBAC Proxy image repository |
| kubeRbacProxy.image.tag | string | "v0.23.1" | Kube RBAC Proxy image tag |
| kubeRbacProxy.resources | object | {"limits":{"cpu":"500m","memory":"128Mi"},"requests":{"cpu":"5m","memory":"64Mi"}} |
Deploy perses-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has perses-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 chartperses-operator is pinned at v0.6.1 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