prs

by CodeScriptum

Helm chartv2.0.4

Power Reservation Steering

About this chart

prs

Power Reservation Steering

Prerequisites

  • Kubernetes >= 1.28
  • Helm >= 3.12
  • PostgreSQL >= 17

Installation

# Add chart dependencies
helm dependency update

# Install
helm install prs . --namespace prs --create-namespace

# Verify
kubectl get pods -n prs
helm test prs -n prs

Values

KeyTypeDefaultDescription
config.extraEgressRuleslist[]
config.ingress.hoststring""
config.replicasint1
config.resources.limits.cpustring"500m"
config.resources.limits.memorystring"512Mi"
config.resources.requests.cpustring"100m"
config.resources.requests.memorystring"256Mi"
config.serviceMonitor.enabledboolfalse
config.serviceMonitor.intervalstring"30s"
config.serviceMonitor.scrapeTimeoutstring"10s"
controller.cluster.bcm.cidrstring""
controller.cluster.bcm.hoststring""
controller.cluster.bcm.ipRedirectbooltrue
controller.cluster.bcm.portint8081
controller.cluster.bcm.rpcTimeoutSecondsint10
controller.cluster.dps.auth.enabledboolfalse
controller.cluster.dps.auth.secretNamestring"prs-ldap"
controller.cluster.dps.hoststring""
controller.cluster.dps.portint50051
controller.cluster.dps.timeoutint30
controller.cluster.dps.tls.caCertPathstring""
controller.cluster.dps.tls.insecureboolfalse
controller.cluster.dps.tls.skipVerifyboolfalse
controller.cluster.shadowModeboolfalse
controller.extraEgressRuleslist[]
controller.ingress.hoststring""
controller.replicasint1
controller.resources.limits.cpustring"1000m"
controller.resources.limits.memorystring"1Gi"
controller.resources.requests.cpustring"250m"
controller.resources.requests.memorystring"512Mi"
controller.serviceMonitor.enabledboolfalse
controller.serviceMonitor.intervalstring"30s"
controller.serviceMonitor.scrapeTimeoutstring"10s"
dashboards.annotationsobject{}
dashboards.enabledboolfalse
dashboards.labelsobject{}
dashboards.namespacestring""
global.database.existingSecretstring""
global.database.names.configstring"config_db"
global.database.names.configStagedstring"config_db_staged"
global.database.names.controllerstring"controller_db"
global.database.passwordstring"changeme"
global.database.portint5432
global.database.userstring"prs_user"
global.image.pullPolicystring"IfNotPresent"
global.image.pullSecretslist[]
global.image.registrystring"nvcr.io/nvidia"
global.ingress.classNamestring""
global.ingress.enabledboolfalse
global.ingress.tlsboolfalse
global.initImagestring"busybox:1.37-glibc"
global.lgtmboolfalse
global.storage.accessKeyIdKeystring"admin_access_key_id"
global.storage.bucketNamestring"prs"
global.storage.existingSecretstring""
global.storage.regionstring"us-east-1"
global.storage.s3Endpointstring""
global.storage.secretAccessKeyKeystring"admin_secret_access_key"
global.telemetry.dump.retentionstring"5h"
global.telemetry.endpoints.otlp.defaultstring""
global.telemetry.endpoints.otlp.insecurebooltrue
global.telemetry.endpoints.otlp.logsstring""
global.telemetry.endpoints.otlp.metricsstring""
global.telemetry.endpoints.otlp.tracesstring""
global.telemetry.endpoints.pyroscope.endpointstring""
global.telemetry.jsonLogsboolfalse
global.telemetry.logLevelstring"INFO"
postgresql.auth.existingSecretstring"{{ .Release.Name }}-secret"
postgresql.auth.secretKeys.adminPasswordKeystring"postgres-password"
postgresql.auth.secretKeys.userPasswordKeystring"database-password"
postgresql.auth.usernamestring"prs_user"
postgresql.enabledbooltrue
postgresql.metrics.enabledbooltrue
postgresql.primary.initdb.scriptsConfigMapstring"{{ .Release.Name }}-postgresql-init"
postgresql.primary.persistence.enabledbooltrue
postgresql.primary.persistence.sizestring"8Gi"
postgresql.primary.podLabels."app.kubernetes.io/part-of"string"prs"
seaweedfs.enabledbooltrue
seaweedfs.filer.data.sizestring"1Gi"
seaweedfs.filer.data.typestring"persistentVolumeClaim"
seaweedfs.filer.replicasint1
seaweedfs.master.data.sizestring"1Gi"
seaweedfs.master.data.typestring"persistentVolumeClaim"
seaweedfs.master.replicasint1
seaweedfs.podLabels."app.kubernetes.io/part-of"string"prs"
seaweedfs.resources.requests.memorystring"256Mi"
seaweedfs.s3.createBuckets[0].anonymousReadboolfalse
seaweedfs.s3.createBuckets[0].namestring"prs"
seaweedfs.s3.enableAuthbooltrue
seaweedfs.s3.enabledbooltrue
seaweedfs.s3.portint8333
seaweedfs.volume.dataDirs[0].maxVolumesint0
seaweedfs.volume.dataDirs[0].namestring"data1"
seaweedfs.volume.dataDirs[0].sizestring"10Gi"
seaweedfs.volume.dataDirs[0].typestring"persistentVolumeClaim"
seaweedfs.volume.replicasint1
security.networkPolicies.enabledbooltrue

Maintainers

NameEmailUrl
PRS Teamhttps://gitlab-master.nvidia.com/applied-networking-ai/projects/power-reservation-steering/prs

Source Code

Deploy prs with OpenTenant

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