pyrra

by rlex

Helm chartv0.15.0App v0.8.1

SLO manager and alert generator

About this chart

pyrra

Depreacted: The Helm chart was moved to https://github.com/pyrra-dev/helm-charts. Please open issues there.

SLO manager and alert generator

Prometheus settings

Pyrra needs prometheus to work. You will need to specify that via prometheusUrl variable - default assumes you have default kube-prometheus-stack deployed to "monitoring" namespace. Additionaly, you (most likely) will need to specify prometheusExternalUrl with URL to public-facing prometheus UI (ingress or whatever you're using), otherwise pyrra links to graphs will be broken

Webhook Admissions Controller Validations (Optional)

Pyrra can be configured to validate SLOs and SLO groups using a webhook admission controller. This is an optional feature that can be enabled by setting the validatingWebhookConfiguration.enabled value to true. The webhook admission controller will validate SLOs when they are created or updated. If the SLO object is invalid, the admission controller will reject the request and provide a reason for the failure. This requires cert-manager to be installed in the cluster. If cert-manager is not installed, the webhook admission controller will not be created.

Grafana dashboards

Pyrra provides Grafana dashboards additionally to it's own UI. The dashboards can be deployed using a ConfigMap and get's automatically reloaded by a Grafana sidecar.

Values

KeyTypeDefaultDescription
additionalLabelsobject{}
dashboards.annotationsobject{}
dashboards.enabledboolfalseenables Grafana dashboards being deployed via configmap
dashboards.extraLabelsobject{}
dashboards.labelstring"grafana_dashboard"default value from the Grafana chart
dashboards.labelValuestring"1"default value from the Grafana chart
dashboards.namespacestringnil
extraApiArgslist[]Extra args for Pyrra's API container
extraKubernetesArgslist[]Extra args for Pyrra's Kubernetes container
fullnameOverridestring""Overrides helm-generated chart fullname
genericRules.enabledboolfalseenables generate Pyrra generic recording rules. Pyrra generates metrics with the same name for each SLO.
image.pullPolicystring"IfNotPresent"Overrides pullpolicy
image.repositorystring"ghcr.io/pyrra-dev/pyrra"Overrides the image repository
image.tagstring"v0.8.1"Overrides the image tag
imagePullSecretslist[]specifies pull secrets for image repository
ingress.annotationsobject{}additional annotations for ingress
ingress.classNamestring""specifies ingress class name (ie nginx)
ingress.enabledboolfalseenables ingress for server UI
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""overrides chart name
nodeSelectorobject{}node selector for scheduling server pod
operatorMetricsAddressstring":8080"Address to expose operator metrics
podAnnotationsobject{}additional annotations for server pod
podSecurityContextobject{}additional security context for server pod
prometheusExternalUrlstring""url to public-facing prometheus UI in case it differs from prometheusUrl
prometheusRule.enabledboolfalseenables creation of PrometheusRules to monitor Pyrra
prometheusRule.labelsobject{}Set labels that will be applied on all PrometheusRules (alerts)
prometheusRule.pyrraReconciliationError.severitystring"warning"Set severity for PyrraReconciliationError alert
prometheusUrlstring"http://prometheus-operated.monitoring.svc.cluster.local:9090"url to prometheus instance with metrics
resourcesobject{}resource limits and requests for server pod
routePrefixstring""Must start with a slash and not end with a slash.
securityContextobject{}additional security context for server
service.annotationsobject{}Annotations to add to the service
service.nodePortstring""node port for HTTP, choose port between <30000-32767>
service.operatorMetricsPortint8080service port for operator metrics
service.portint9099service port for server
service.typestring"ClusterIP"service type for server
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
serviceMonitor.enabledboolfalseenables servicemonitor for server monitoring
serviceMonitor.intervalstring""Set interval for scraping metrics
serviceMonitor.jobLabelstring""provides the possibility to override the jobName if needed
serviceMonitor.labelsobject{}Set labels for the ServiceMonitor, use this to define your scrape label for Prometheus Operator
serviceMonitor.metricRelabelingslist[]Set metric relabelings for the ServiceMonitor
serviceMonitor.relabelingslist[]Set relabelings for the ServiceMonitor
serviceMonitorOperator.enabledboolfalseenables servicemonitor for operator monitoring
serviceMonitorOperator.intervalstring""Set interval for scraping metrics
serviceMonitorOperator.jobLabelstring""provides the possibility to override the jobName if needed
serviceMonitorOperator.labelsobject{}Set labels for the ServiceMonitor, use this to define your scrape label for Prometheus Operator
serviceMonitorOperator.metricRelabelingslist[]Set metric relabelings for the ServiceMonitor
serviceMonitorOperator.relabelingslist[]Set relabelings for the ServiceMonitor
tolerationsobject{}tolerations for scheduling server pod
validatingWebhookConfiguration.enabledboolfalseenables admission webhook for server to validate SLOs, this requires cert-manager to be installed

Upgrading

A major chart version change indicates that there is an incompatible breaking change needing manual actions.

Deploy pyrra with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pyrra 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpyrra is pinned at v0.15.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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