dps

by CodeScriptum

Helm chartv0.10.1App 0.10.1

NVIDIA Dynamic Power Software

About this chart

dps

NVIDIA Dynamic Power Software

Pre-Requisites

  • Kubernetes
  • Helm

WARNING: Default Install Is Insecure

The default chart values are for bring-up only:

  • DPS gRPC runs in plaintext with dps.serverTLS.transportSecurity: "insecure".
  • The agent connects without TLS or mTLS with agent.tls.transportSecurity: "insecure".
  • The agent does not send a bearer token; in plaintext mode the server trusts DPSAgentService.
  • /Token resolves the empty dps.auth.authenticatorType default to alwaysAllow, which accepts any username/password.

Do not use the defaults for production. Provide TLS Secrets, enable agent mTLS, allow the agent certificate CN for DPSAgentService, and use a real authenticator:

dps:
  serverTLS:
    transportSecurity: tls
    existingSecret: dps-server-tls
  grpcServiceMTLSCN:
    nvidia.dcpower.v1.DPSAgentService:
      - dps-agent-default
  auth:
    authenticatorType: ldap
  ldap:
    enabled: true

agent:
  enabled: true
  agentID: dps-agent-default
  tls:
    transportSecurity: mtls
    existingSecret: dps-agent-client-tls

External Authentication

Delegate authentication and authorization to an independently installed proxy:

dps:
  auth:
    external:
      enabled: true
      proxyPort: 8081

The deployment owns proxy installation and Service routing. See DPS gRPC Authentication for setup.

UI HTTPS

Use HTTPS for the DPS UI in production. Configure ui.ingress.tls with a Kubernetes TLS Secret, or terminate TLS before traffic reaches the UI ingress. The chart leaves ui.ingress.tls empty because certificate provisioning is platform-specific.

LDAP Group Profiles

DPS resolves LDAP groups before issuing JWTs and writes the group names into the JWT memberOf claim. dps.auth.auth_required_groups is enforced against that claim.

For POSIX/RFC2307 directories, set:

dps:
  ldap:
    enabled: true
    groupProfile: rfc2307
    groupAttribute: cn

The rfc2307 profile resolves secondary memberships with posixGroup/memberUid={uid} and primary memberships with matching posixGroup/gidNumber={gidnumber}.

groupProfile controls how DPS resolves LDAP group membership:

ProfileUse forGroup filter behavior
unset or customExisting deployments with a custom LDAP filter.Uses groupFilter as configured.
groupOfNamesLDAP directories with groupOfNames groups.Defaults to (&(objectClass=groupOfNames)(member={userdn})) unless a custom groupFilter is set.
rfc2307POSIX/RFC2307 directories.Uses posixGroup/memberUid={uid} and posixGroup/gidNumber={gidnumber}; ignores groupFilter.
activeDirectoryActive Directory groups.Defaults to (&(objectClass=group)(member={userdn})) unless a custom groupFilter is set.

Custom group filters may use {userdn}, {username}, {uid}, and {gidnumber} substitutions.

OIDC Authentication

Set dps.auth.oidc.enabled: true to validate external OIDC access tokens against a JWKS endpoint. OIDC mode disables DPS /Token issuance for the release by setting AUTH_SERVICE_ENABLE=false; clients must send authorization: Bearer <access-token>.

Example:

dps:
  auth:
    oidc:
      enabled: true
      issuer: "https://keycloak.example/realms/dps"
      jwksUrl: "https://keycloak.example/realms/dps/protocol/openid-connect/certs"
      audience: "dps-api"
      requiredScopes:
        - dps:api

Use HTTPS in production. If Keycloak uses a private CA, mount the CA bundle and set dps.auth.oidc.caCertFile. allowHTTP is for local development only. Set allowedClientIds to restrict accepted token azp values.

PostgreSQL TLS (global.postgresql.sslMode)

global.postgresql.sslMode controls the PostgreSQL client connection mode used by dps-server.

ModeValuesNotes
unset(default)Effective disable.
verify-caglobal.postgresql.sslMode: "verify-ca" + global.postgresql.sslRootCertValidates the Postgres server cert against the configured CA.
verify-fullglobal.postgresql.sslMode: "verify-full" + global.postgresql.sslRootCertValidates the CA and connection hostname.
Client certificate authglobal.postgresql.sslCert + global.postgresql.sslKeyAdds a client certificate and key to the Postgres connection.

Mount certificate files with dps.secrets or another pod volume mechanism and set the matching absolute paths under global.postgresql.

PostgreSQL Passwords and GitOps

The chart keeps a convenience password fallback for direct live Helm workflows:

  1. If global.postgresql.auth.password is set, DPS uses that value.
  2. If global.postgresql.auth.existingSecret is set, DPS uses that Secret and does not create one.
  3. If neither value is set, DPS uses lookup to reuse the existing live <release>-postgresql Secret.
  4. If the live Secret is not found, DPS generates a new password with randAlphaNum.

This is convenient for helm install and helm upgrade --install, because live Helm can query the cluster and reuse the existing Secret on later upgrades. It is not a safe production source of truth for GitOps workflows such as offline helm template, CI-generated manifests, or Argo CD-style rendering. In those flows, lookup may return empty and randAlphaNum may produce a new password on each render, causing credential mismatch between the database, pods, connection pools, and restarted workloads.

For production and GitOps, manage the Secret outside this chart and set global.postgresql.auth.existingSecret. The Secret should contain the DPS password key and the Bitnami-compatible user password key:

global:
  postgresql:
    auth:
      username: dps
      database: dps
      existingSecret: dps-postgresql
      secretKeys:
        passwordKey: password
        userPasswordKey: database-password

Safer GitOps patterns include SOPS-encrypted Secrets or values, Sealed Secrets, External Secrets Operator, or another external secret manager.

Grafana Dashboards

The chart can publish an opt-in dashboard ConfigMap for a platform-provided Grafana dashboard sidecar. It contains:

  • DPS Overview and DB Connections for Prometheus metrics;
  • DPS Operations Tracing Dashboard and DPS Redfish API for Tempo traces; and
  • DPS Server Metrics for Prometheus metrics, Loki logs, and Tempo traces.

The chart does not install Grafana, Prometheus, Prometheus Operator, Loki, or Tempo. Install and configure those platform components first, including a sidecar that discovers ConfigMaps labeled grafana_dashboard: "1".

Dashboard UIDs are stable so links and updates remain consistent. Enable the dashboard ConfigMap in only one Helm release per Grafana organization watched by the same sidecar. Runtime scope filters are described below.

Enable the dashboard and the DPS metrics ServiceMonitors with:

observability:
  dashboards:
    enabled: true

dps:
  serviceMonitor:
    enabled: true

agent:
  enabled: true
  serviceMonitor:
    enabled: true

The dashboards select their Prometheus, Loki, and Tempo datasources at runtime. DPS Overview and DB Connections select namespace, release, service, and pod. DPS Server Metrics selects namespace, release, and server workload for server metrics and logs. Trace panels select matching services and operations in the Tempo datasource, not individual Helm releases. Override observability.dashboards.labels and observability.dashboards.annotations when the platform sidecar uses different discovery metadata. Power Steering and NvGrid panels are optional; no data in those panels means the integration may be disabled, inactive, or unavailable.

Requirements

RepositoryNameVersion
https://helm.ngc.nvidia.com/nvidiapower-steering2.2.2

Values

KeyTypeDefaultDescription
agent.agentIDstring"default"Agent identifier (must match topology AgentId assignments)
agent.auth.allowInsecureboolfalsePermit application credentials over plaintext DPS gRPC.
agent.auth.dpsobject{}DPS AuthService login (including LDAP-backed DPS). Set username and password.existingSecret (key defaults to password). The Secret is mounted only into the agent. Restart after password rotation. passwordFile is an alternative for platform-injected files.
agent.auth.oauth2object{}OAuth2 client credentials. Set tokenUrl and scopes plus credentials.existingSecret or credentialsFile. The JSON file is reread for each token acquisition; selectors default to $.client_id and $.client_secret.
agent.auth.requestTimeoutstring"30s"Timeout for OAuth2 token acquisition and DPS login/refresh requests.
agent.auth.tokenFilestring""Path to an externally mounted, rotating bearer token. The platform owns delivery and rotation; avoid subPath mounts.
agent.capabilities.compliance.alertTimeoutstring"60s"Compliance alert expiration timeout.
agent.capabilities.compliance.enabledboolfalseEnable agent-side compliance monitoring and alerts.
agent.capabilities.compliance.evaluationDelaystring"0s"Compliance evaluation delay after a desired limit changes.
agent.capabilities.deviceControl.maxConcurrentCallsint1000Maximum concurrent device calls accepted by the agent. Additional calls are rejected.
agent.capabilities.zapp.enabledboolfalseEnable Zapp DSX host registration and telemetry streaming.
agent.capabilities.zapp.metricsManagementService.tls.existingSecretstring""Existing Secret containing ca.crt for TLS, plus tls.crt and tls.key for mTLS.
agent.capabilities.zapp.metricsManagementService.tls.insecureSkipVerifyboolfalseSkip server certificate verification. Use only for development.
agent.capabilities.zapp.metricsManagementService.tls.transportSecuritystring"insecure"MetricsManagementService transport mode. Valid values: tls, mtls, insecure.
agent.capabilities.zapp.metricsManagementService.urlstring"grpc://zapp:9090"MetricsManagementService gRPC URL. Use grpc:// for insecure transport or grpcs:// for TLS/mTLS.
agent.capabilities.zapp.zappService.tls.existingSecretstring""Existing Secret containing ca.crt for TLS, plus tls.crt and tls.key for mTLS.
agent.capabilities.zapp.zappService.tls.insecureSkipVerifyboolfalseSkip server certificate verification. Use only for development.
agent.capabilities.zapp.zappService.tls.transportSecuritystring"insecure"ZappService transport mode. Valid values: tls, mtls, insecure.
agent.capabilities.zapp.zappService.urlstring"grpc://zapp:50051"ZappService gRPC URL for SensorManifest and Subscribe.
agent.configFilestring"/etc/dps-server-agent/config.yaml"Path to agent YAML config file (mounted from ConfigMap)
agent.credentialsStorestring"" (defaults to dps.credentialsStore)Agent Redfish credential store.
agent.deploymentAnnotationsobject{}Annotations for agent deployment
agent.enabledboolfalseEnable DPS Agent Deployment
agent.existingConfigMapstring""Existing ConfigMap containing agent config YAML
agent.existingSecretstring""Existing Secret containing BMC credentials
agent.image.imagePullSecretslist[]
agent.image.pullPolicystring"" (defaults to dps.image.pullPolicy)Image pull policy for agent
agent.image.repositorystring"" (defaults to dps.image.repository)Repository to use for agent (same as dps-server)
agent.image.tagstring"" (defaults to dps.image.tag)Tag to use for agent
agent.pingIntervalstring"30s"Ping interval for keepalive
agent.podAnnotationsobject{}Annotations for agent pods
agent.podLabelsobject{}Labels for agent pods
agent.replicasint1Number of agent replicas
agent.resourcesobject{}
agent.secretMountPathstring""Base directory for agent Redfish credential files when agent.credentialsStore is "file". Files are resolved as baremetal/<Redfish.SecretName>/bmc below this path.
agent.secretsDirstring"/mnt/secrets"Path to secrets directory for ${secrets.*} variable expansion
agent.securityContext.fsGroupint65532
agent.securityContext.runAsNonRootbooltrue
agent.securityContext.runAsUserint65532
agent.serverAddrstring"" (defaults to "{Release.Name}-server-grpc.{Release.Namespace}.svc.cluster.local:50051")DPS server address for the agent to connect to
agent.serviceMonitor.additionalLabelsobject{}Additional labels to add to the ServiceMonitor metadata
agent.serviceMonitor.enabledboolfalseEnable a ServiceMonitor for the DPS agent. Requires agent.enabled=true and the monitoring.coreos.com/v1 ServiceMonitor CRD.
agent.serviceMonitor.intervalstring"30s"ServiceMonitor scrape interval
agent.serviceMonitor.namespacestringRelease namespaceOverride the namespace where the ServiceMonitor is deployed
agent.serviceMonitor.namespaceSelectorobject{}Namespace selector used to discover the agent metrics Service. When empty, discovery uses the monitor namespace, or the release namespace when the monitor is deployed elsewhere.
agent.serviceMonitor.scrapeTimeoutstring"10s"ServiceMonitor scrape timeout
agent.tls.existingSecretstring""Existing Kubernetes Secret containing agent TLS material. Required for tls and mtls. For tls, must contain ca.crt. For mtls, must contain tls.crt, tls.key, an

Deploy dps with OpenTenant

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