pyroscope

by apecloud

Helm chartv0.2.92App 0.37.2Verified publisher

A Helm chart for Pyroscope

About this chart

pyroscope

A Helm chart for Pyroscope

Get the Repo of Pyrscope


helm repo add pyroscope-io https://pyroscope-io.github.io/helm-chart

Installing the Chart

To install the chart with the release name my-release:


helm install my-release pyroscope-io/pyroscope

Uninstalling the Chart

To uninstall/delete the my-release deployment:


helm delete my-release

Persistence

The official Pyroscope container image runs pyroscope server process with user ID 101. The chart uses this value as default pod security context fsGroup. This includes all processes of the container to the supplemental group and makes kubelet to change the ownership of mounted volumes to this group (recursively; setgid bit is set).

If you restrict pod security (for example, using SecurityContextConstraints or PodSecurityPolicy), you may need to override fsGroup with a value from the valid range.

Pyroscope configuration

pyroscopeConfigs parameter may include any supported pyroscope server configuration option. Please refer to the documentation for details.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
deploymentStrategyobject{"type":"Recreate"}Deployment strategy
envobject{}Extra environment variables
extraLabelsobject{}Extra common labels for all resources
extraVolumeMountslist[]Additional volume mounts for pyroscope server container
extraVolumeslist[]Additional volumes
fullnameOverridestring""Defaults to .Release.Name-.Chart.Name unless .Release.Name contains "pyroscope"
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"pyroscope/pyroscope"image to use for deploying
image.tagstring"0.37.2"Tag for pyroscope image to use
imagePullSecretslist[]Image pull secrets
ingress.annotationsobject{}Ingress annotations (values are templated)
ingress.classNamestring""Ingress class name
ingress.enabledboolfalseEnables Ingress
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Ingress accepted hostnames
ingress.ruleslist[]Ingress custom rules. Take precedence over chart built-ins.
ingress.tlslist[]Ingress TLS configuration
initContainerslist[]
livenessProbe.enabledbooltrueEnable Pyroscope server liveness
livenessProbe.failureThresholdint3Pyroscope server liveness check failure threshold
livenessProbe.httpGet.pathstring"/healthz"Pyroscope server liveness check path
livenessProbe.httpGet.portint4040Pyroscope server liveness check port
livenessProbe.initialDelaySecondsint30Pyroscope server liveness check intial delay in seconds
livenessProbe.periodSecondsint15Pyroscope server liveness check frequency in seconds
livenessProbe.successThresholdint1Pyroscope server liveness check success threshold
livenessProbe.timeoutSecondsint30Pyroscope server liveness check request timeout
nameOverridestring""Defaults to .Chart.Name
nodeSelectorobject{}Node labels for pod assignment
persistence.accessModeslist["ReadWriteOnce"]Persistence access modes
persistence.enabledboolfalseUse persistent volume to store data
persistence.finalizerslist["kubernetes.io/pvc-protection"]PersistentVolumeClaim finalizers
persistence.sizestring"10Gi"Size of persistent volume claim
podAnnotationsobject{}Pod annotations
podSecurityContextobject{"fsGroup":101}Pod securityContext
pyroscopeConfigsobject{}Pyroscope server configuration. Please refer to https://pyroscope.io/docs/server-configuration
rbac.clusterRole.annotationsobject{}Cluster role annotations
rbac.clusterRole.extraRuleslist[]Extra rules for created cluster role
rbac.clusterRole.namestring""Cluster role name. If not set, the fully qualified app name is used
rbac.clusterRoleBinding.annotationsobject{}Cluster role binding annotations
rbac.clusterRoleBinding.namestring""Cluster role binding name. If not set, the fully qualified app name is used
rbac.createboolfalseCreates Pyroscope cluster role and binds service account to it; requires service account to be created
readinessProbe.enabledbooltrueEnable Pyroscope server readiness
readinessProbe.failureThresholdint3Pyroscope server readiness check failure threshold count
readinessProbe.httpGet.pathstring"/healthz"Pyroscope server readiness check path
readinessProbe.httpGet.portint4040Pyroscope server readiness check port
readinessProbe.initialDelaySecondsint30Pyroscope server readiness initial delay in seconds
readinessProbe.periodSecondsint5Pyroscope server readiness check frequency in seconds
readinessProbe.successThresholdint1Pyroscope server readiness check success threshold count
readinessProbe.timeoutSecondsint30Pyroscope server readiness check request timeout
resourcesobject{}CPU/Memory resource requests/limits
securityContextobject{}Deployment securityContext
service.annotationsobject{}Service annotations
service.portint4040Kubernetes port where service is exposed
service.typestring"ClusterIP"Specify a service type
serviceAccount.annotationsobject{}ServiceAccount annotations
serviceAccount.createbooltrueCreate service account
serviceAccount.namestring""Service account name to use, when empty will be set to created account if serviceAccount.create is set else to default
tolerationslist[]Toleration labels for pod assignment

Deploy pyroscope with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pyroscope 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 chartpyroscope is pinned at v0.2.92 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