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
| Key | Type | Default | Description |
|---|---|---|---|
| config.extraEgressRules | list | [] | |
| config.ingress.host | string | "" | |
| config.replicas | int | 1 | |
| config.resources.limits.cpu | string | "500m" | |
| config.resources.limits.memory | string | "512Mi" | |
| config.resources.requests.cpu | string | "100m" | |
| config.resources.requests.memory | string | "256Mi" | |
| config.serviceMonitor.enabled | bool | false | |
| config.serviceMonitor.interval | string | "30s" | |
| config.serviceMonitor.scrapeTimeout | string | "10s" | |
| controller.cluster.bcm.cidr | string | "" | |
| controller.cluster.bcm.host | string | "" | |
| controller.cluster.bcm.ipRedirect | bool | true | |
| controller.cluster.bcm.port | int | 8081 | |
| controller.cluster.bcm.rpcTimeoutSeconds | int | 10 | |
| controller.cluster.dps.auth.enabled | bool | false | |
| controller.cluster.dps.auth.secretName | string | "prs-ldap" | |
| controller.cluster.dps.host | string | "" | |
| controller.cluster.dps.port | int | 50051 | |
| controller.cluster.dps.timeout | int | 30 | |
| controller.cluster.dps.tls.caCertPath | string | "" | |
| controller.cluster.dps.tls.insecure | bool | false | |
| controller.cluster.dps.tls.skipVerify | bool | false | |
| controller.cluster.shadowMode | bool | false | |
| controller.extraEgressRules | list | [] | |
| controller.ingress.host | string | "" | |
| controller.replicas | int | 1 | |
| controller.resources.limits.cpu | string | "1000m" | |
| controller.resources.limits.memory | string | "1Gi" | |
| controller.resources.requests.cpu | string | "250m" | |
| controller.resources.requests.memory | string | "512Mi" | |
| controller.serviceMonitor.enabled | bool | false | |
| controller.serviceMonitor.interval | string | "30s" | |
| controller.serviceMonitor.scrapeTimeout | string | "10s" | |
| dashboards.annotations | object | {} | |
| dashboards.enabled | bool | false | |
| dashboards.labels | object | {} | |
| dashboards.namespace | string | "" | |
| global.database.existingSecret | string | "" | |
| global.database.names.config | string | "config_db" | |
| global.database.names.configStaged | string | "config_db_staged" | |
| global.database.names.controller | string | "controller_db" | |
| global.database.password | string | "changeme" | |
| global.database.port | int | 5432 | |
| global.database.user | string | "prs_user" | |
| global.image.pullPolicy | string | "IfNotPresent" | |
| global.image.pullSecrets | list | [] | |
| global.image.registry | string | "nvcr.io/nvidia" | |
| global.ingress.className | string | "" | |
| global.ingress.enabled | bool | false | |
| global.ingress.tls | bool | false | |
| global.initImage | string | "busybox:1.37-glibc" | |
| global.lgtm | bool | false | |
| global.storage.accessKeyIdKey | string | "admin_access_key_id" | |
| global.storage.bucketName | string | "prs" | |
| global.storage.existingSecret | string | "" | |
| global.storage.region | string | "us-east-1" | |
| global.storage.s3Endpoint | string | "" | |
| global.storage.secretAccessKeyKey | string | "admin_secret_access_key" | |
| global.telemetry.dump.retention | string | "5h" | |
| global.telemetry.endpoints.otlp.default | string | "" | |
| global.telemetry.endpoints.otlp.insecure | bool | true | |
| global.telemetry.endpoints.otlp.logs | string | "" | |
| global.telemetry.endpoints.otlp.metrics | string | "" | |
| global.telemetry.endpoints.otlp.traces | string | "" | |
| global.telemetry.endpoints.pyroscope.endpoint | string | "" | |
| global.telemetry.jsonLogs | bool | false | |
| global.telemetry.logLevel | string | "INFO" | |
| postgresql.auth.existingSecret | string | "{{ .Release.Name }}-secret" | |
| postgresql.auth.secretKeys.adminPasswordKey | string | "postgres-password" | |
| postgresql.auth.secretKeys.userPasswordKey | string | "database-password" | |
| postgresql.auth.username | string | "prs_user" | |
| postgresql.enabled | bool | true | |
| postgresql.metrics.enabled | bool | true | |
| postgresql.primary.initdb.scriptsConfigMap | string | "{{ .Release.Name }}-postgresql-init" | |
| postgresql.primary.persistence.enabled | bool | true | |
| postgresql.primary.persistence.size | string | "8Gi" | |
| postgresql.primary.podLabels."app.kubernetes.io/part-of" | string | "prs" | |
| seaweedfs.enabled | bool | true | |
| seaweedfs.filer.data.size | string | "1Gi" | |
| seaweedfs.filer.data.type | string | "persistentVolumeClaim" | |
| seaweedfs.filer.replicas | int | 1 | |
| seaweedfs.master.data.size | string | "1Gi" | |
| seaweedfs.master.data.type | string | "persistentVolumeClaim" | |
| seaweedfs.master.replicas | int | 1 | |
| seaweedfs.podLabels."app.kubernetes.io/part-of" | string | "prs" | |
| seaweedfs.resources.requests.memory | string | "256Mi" | |
| seaweedfs.s3.createBuckets[0].anonymousRead | bool | false | |
| seaweedfs.s3.createBuckets[0].name | string | "prs" | |
| seaweedfs.s3.enableAuth | bool | true | |
| seaweedfs.s3.enabled | bool | true | |
| seaweedfs.s3.port | int | 8333 | |
| seaweedfs.volume.dataDirs[0].maxVolumes | int | 0 | |
| seaweedfs.volume.dataDirs[0].name | string | "data1" | |
| seaweedfs.volume.dataDirs[0].size | string | "10Gi" | |
| seaweedfs.volume.dataDirs[0].type | string | "persistentVolumeClaim" | |
| seaweedfs.volume.replicas | int | 1 | |
| security.networkPolicies.enabled | bool | true |
Maintainers
| Name | Url | |
|---|---|---|
| PRS Team | https://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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprs is pinned at v2.0.4 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