Skip to Content
Platform
Module Integration
Platform APIChart configuration examples

Chart configuration examples

This document provides examples of the configuration of the Helm Chart values for the platform API.

Platform API

Production Environment example usage

Below is an example of setting environment-specific values for the Platform API in Production. Note in particular the following:

  1. Resources settings which are recommended for this in Production
  2. Passwords, and any other secure values (recommended that they are stored as secure variables)
global: imageRegistry: example-image-registry-location imageRegistryUsername: example-image-registry-username imageRegistryPassword: "example-image-registry-password" api: name: "analytics" resources: limits: cpu: 1 memory: 1Gi messaging: url: "example-url-for-messaging-component" subscriptions: "hub.entity,hub.entitygroup,hub.submission" subscriptionsUrl: "example-url-for-module-receive-message-endpoint" storage: provider: s3compatible url: "example-url-for-storage-endpoint" bucket: rhp username: admin password: "example-password"

Test Environment example usage

Below is an example of setting environment specific values for the Platform API in Test. Note in particular the following:

  1. Resources settings which are recommended for this in Test
  2. Passwords, and any other secure values (recommended that they are stored as secure variables)
global: imageRegistry: example-image-registry-location imageRegistryUsername: example-image-registry-username imageRegistryPassword: "example-image-registry-password" api: name: "analytics" resources: limits: cpu: 1 memory: 1Gi messaging: url: "example-url-for-messaging-component" subscriptions: "hub.entity,hub.entitygroup,hub.submission" subscriptionsUrl: "example-url-for-module-receive-message-endpoint" storage: provider: s3compatible url: "example-url-for-storage-endpoint" bucket: rhp username: admin password: "example-password"

Both examples use S3-compatible storage with credentials in Helm values. Platform API Storage Configuration contains the alternatives: credentials from an existing Secret, Azure Blob Storage, Azure Data Lake Storage Gen2 and filesystem storage.

OpenTelemetry export

Platform API 1.12.0 and later can export traces and metrics over OTLP to an OpenTelemetry collector. Export is off by default. Each signal is turned on by setting its endpoint, and an empty endpoint keeps it off.

api: openTelemetry: serviceName: "platform-api" traces: endpoint: "http://opentelemetry-collector.observability.svc.cluster.local:4317" protocol: "grpc" samplingRatio: "0.1" metrics: endpoint: "http://opentelemetry-collector.observability.svc.cluster.local:4318/v1/metrics" protocol: "http/protobuf"
  • traces.protocol and metrics.protocol accept grpc or http/protobuf. The defaults are grpc for traces and http/protobuf for metrics. With http/protobuf, the endpoint must include the signal path (/v1/traces or /v1/metrics), as in the example.
  • traces.samplingRatio is the fraction of traces to sample, from 0 to 1. The default is 0.1. Requests that already carry a trace context keep the caller’s sampling decision.
  • serviceName sets service.name for every instance. It defaults to platform-api. The service name and both endpoints are rendered with tpl.