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:
- Resources settings which are recommended for this in Production
- 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:
- Resources settings which are recommended for this in Test
- 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.protocolandmetrics.protocolacceptgrpcorhttp/protobuf. The defaults aregrpcfor traces andhttp/protobuffor metrics. Withhttp/protobuf, the endpoint must include the signal path (/v1/tracesor/v1/metrics), as in the example.traces.samplingRatiois the fraction of traces to sample, from0to1. The default is0.1. Requests that already carry a trace context keep the caller’s sampling decision.serviceNamesetsservice.namefor every instance. It defaults toplatform-api. The service name and both endpoints are rendered withtpl.