radar-gateway
by RADAR-Base
A Helm chart for RADAR-base gateway. REST Gateway to Kafka, for incoming participant data. It performs authentication, authorization, content validation and decompression. For more details of the configurations, see https://github.com/RADAR-base/RADAR-Gateway/blob/master/gateway.yml.
About this chart
radar-gateway
A Helm chart for RADAR-base gateway. REST Gateway to Kafka, for incoming participant data. It performs authentication, authorization, content validation and decompression. For more details of the configurations, see https://github.com/RADAR-base/RADAR-Gateway/blob/master/gateway.yml.
Homepage: https://radar-base.org
Maintainers
| Name | Url | |
|---|---|---|
| Pim van Nierop | [email protected] | https://www.thehyve.nl/experts/pim-van-nierop |
Source Code
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-gateway
- https://github.com/RADAR-base/RADAR-Gateway
Prerequisites
- Kubernetes 1.28+
- Kubectl 1.28+
- Helm 3.1.0+
- metrics-server is required in the cluster when HPA is enabled (
hpa.enabled=true)
Requirements
| Repository | Name | Version |
|---|---|---|
| https://radar-base.github.io/radar-helm-charts | common | 2.x.x |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 2 | Number of radar-gateway replicas to deploy |
| image.registry | string | "ghcr.io" | Image registry |
| image.repository | string | "radar-base/radar-gateway/radar-gateway" | Image repository |
| image.tag | string | nil | Image tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion. |
| image.digest | string | "" | Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName |
| image_exporter.registry | string | "docker.io" | Image registry |
| image_exporter.repository | string | "sscaling/jmx-prometheus-exporter" | Image repository |
| image_exporter.tag | string | nil | Image tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion. |
| image_exporter.digest | string | "sha256:48e3bd31f132146751e449429a3e8a260b141f2acd587878fc50b3eda4466c5d" | Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag |
| image_exporter.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image_exporter.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName |
| nameOverride | string | "" | String to partially override radar-gateway.fullname template with a string (will prepend the release name) |
| fullnameOverride | string | "" | String to fully override radar-gateway.fullname template with a string |
| podSecurityContext | object | {} | Configure radar-gateway pods' Security Context |
| securityContext | object | {} | Configure radar-gateway containers' Security Context |
| service.type | string | "ClusterIP" | Kubernetes Service type |
| service.port | int | 8080 | radar-gateway port |
| disable_tls | bool | false | Reconfigure Ingress to not force TLS |
| advertised_protocol | string | "https" | The protocol in advertised URIs (https, http) |
| ingress.enabled | bool | true | Enable ingress controller resource |
| ingress.annotations | object | check values.yaml | Annotations that define default ingress class, certificate issuer and deny access to sensitive URLs |
| ingress.path | string | "/kafka/?(.*)" | Path within the url structure |
| ingress.pathType | string | "ImplementationSpecific" | Ingress Path type |
| ingress.ingressClassName | string | "nginx" | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) |
| ingress.hosts | list | ["localhost"] | Hosts to accept requests from |
| ingress.tls.secretName | string | "radar-base-tls" | Name of the secret that contains TLS certificates |
| gatewayAPI.enabled | bool | false | Enable Gateway API HTTPRoute resource (alternative to ingress). Opt-in: requires the Gateway API CRDs and a Gateway controller to be installed. |
| gatewayAPI.annotations | object | {} | Annotations to add to the HTTPRoute |
| gatewayAPI.parentRef | object | {"name":"radar-base-k8s-gateway","namespace":""} | Parent Gateway that the HTTPRoute attaches to. The Gateway itself is a shared resource and must be created separately (not by this chart). |
| gatewayAPI.parentRef.name | string | "radar-base-k8s-gateway" | Name of the Gateway |
| gatewayAPI.parentRef.namespace | string | "" | Namespace of the Gateway (defaults to the release namespace when empty) |
| gatewayAPI.hostnames | list | ["{{ .Values.serverName }}"] | Hostnames the HTTPRoutes accept requests for (must intersect the Gateway listener hostnames). String values support Helm templating (tpl); defaults to serverName so deployments override it the same way as ingress.hosts. |
| gatewayAPI.https | object | {"port":443,"sectionName":""} | HTTPS listener on the Gateway that the main route attaches to |
| gatewayAPI.https.port | int | 443 | Listener port (empty attaches to all matching listeners) |
| gatewayAPI.https.sectionName | string | "" | Listener sectionName on the Gateway (optional) |
| gatewayAPI.pathType | string | "PathPrefix" | Path match type (PathPrefix, Exact or RegularExpression) |
| gatewayAPI.path | string | "/kafka" | Path to match within the URL structure |
| gatewayAPI.filters | list | check values.yaml | Additional HTTPRoute filters (e.g. URLRewrite, RequestHeaderModifier) |
| gatewayAPI.httpsRedirect | object | {"enabled":true,"port":80,"sectionName":"","statusCode":301} | HTTP->HTTPS redirect route (equivalent to nginx force-TLS behaviour) |
| gatewayAPI.httpsRedirect.enabled | bool | true | Enable a second HTTPRoute that 301-redirects HTTP traffic to HTTPS |
| gatewayAPI.httpsRedirect.port | int | 80 | HTTP listener port on the Gateway to attach the redirect to |
| gatewayAPI.httpsRedirect.sectionName | string | "" | Listener sectionName on the Gateway (optional) |
| gatewayAPI.httpsRedirect.statusCode | int | 301 | Redirect HTTP status code |
| resources.requests | object | {"cpu":"100m","memory":"400Mi"} | CPU/Memory resource requests |
| nodeSelector | object | {} | Node labels for pod assignment |
| tolerations | list | [] | Toleration labels for pod assignment |
| affinity | object | {} | Affinity labels for pod assignment |
| javaOpts | string | "-XX:GCTimeRatio=19 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=30 --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.management/javax.management.openmbean=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.management/javax.management=ALL-UNNAMED -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager" | Standard JAVA_OPTS that should be passed to this service |
| extraEnvVars | list | [] | Extra environment variables |
| customLivenessProbe | object | {} | Custom livenessProbe that overrides the default one |
| livenessProbe.enabled | bool | true | Enable livenessProbe |
| livenessProbe.initialDelaySeconds | int | 5 | Initial delay seconds for livenessProbe |
| livenessProbe.periodSeconds | int | 30 | Period seconds for livenessProbe |
| livenessProbe.timeoutSeconds | int | 5 | Timeout seconds for livenessProbe |
| livenessProbe.successThreshold | int | 1 | Success threshold for livenessProbe |
| livenessProbe.failureThreshold | int | 3 | Failure threshold for livenessProbe |
| customReadinessProbe | object | {} | Custom readinessProbe that overrides the default one |
| readinessProbe.enabled | bool | true | Enable readinessProbe |
| readinessProbe.initialDelaySeconds | int | 5 | Initial delay seconds for readinessProbe |
| readinessProbe.periodSeconds | int | 30 | Period seconds for readinessProbe |
| readinessProbe.timeoutSeconds | int | 5 | Timeout seconds for readinessProbe |
| readinessProbe.successThreshold | int | 1 | Success threshold for readinessProbe |
| readinessProbe.failureThreshold | int | 3 | Failure threshold for readinessProbe |
| customStartupProbe | object | {} | Custom startupProbe that overrides the default one |
| startupProbe.enabled | bool | true | Enable startupProbe |
| startupProbe.initialDelaySeconds | int | 5 | Initial delay seconds for startupProbe |
| startupProbe.periodSeconds | int | 10 | Period seconds for startupProbe |
| startupProbe.timeoutSeconds | int | 10 | Timeout seconds for startupProbe |
| startupProbe.successThreshold | int | 1 | Success threshold for startupProbe |
| startupProbe.failureThreshold | int | 30 | Failure threshold for startupProbe |
| networkpolicy | object | check values.yaml | Network policy defines who can access this application and who this applications has access to |
| serviceMonitor.enabled | bool | true | Enable metrics to be collected via Prometheus-operator |
| jmxExporter.resources | object | {} | |
| hpa.enabled | bool | true | Enable HPA |
| hpa.maxReplicas | string | "5" | Maximum number of replicas |
| hpa.targetCPU | string | "80" | Target CPU utilization percentage |
| hpa.targetMemory | string | nil | Target Memory utilization percentage |
| managementportal_url | string | "http://management-portal:8080/managementportal" | URL of the management portal application |
| schemaRegistry | string | "http://radar-kafka-schema-registry:8081" | Schema Registry URL |
| max_requests | int | 1000 | Not used. To be confirmed |
| bootstrapServers | string | "radar-kafka-kafka-bootstrap:9094" | Kafka broker URLs |
| checkSourceId | bool | true | set to true, if sources in access token should be validated |
| adminProperties | object | {"sasl.mechanism":"SCRAM-SHA-512","security.protocol":"SASL_PLAINTEXT"} | Additional Kafka Admin Client settings as key value pairs. Read from https://kafka.apache.org/documentation/#adminclientconfigs. |
| adminProperties."security.protocol" | string | "SASL_PLAINTEXT" | Protocol used to communicate with brokers. Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL. |
| adminProperties."sasl.mechanism" | string | "SCRAM-SHA-512" | Mechanism used to authenticate with SASL. Valid values are: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512. |
| producerProperties | object | {"compression.type":"lz4","sasl.mechanism":"SCRAM-SHA-512","security.protocol":"SASL_PLAINTEXT"} | Kafka producer properties as key value pairs. Read from https://kafka.apache.org/documentation/#producerconfigs. |
| producerProperties."security.protocol" | string | "SASL_PLAINTEXT" | Protocol used to communicate with brokers. Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL. |
| producerProperties."sasl.mechanism" | string | "SCRAM-SHA-512" | Mechanism used to authenticate with SASL. Valid values are: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512. |
| serializationProperties | object | {} | Additional Kafka serialization settings, used in KafkaAvroSerializer. Read from [io.confluent.kafka.serializers.AbstractKafkaSchemaSetDeConfig]. |
| secret.admin.jaas | object | {"key":"sasl.jaas.config","name":"shared-service-user"} | Secret for the Kafka SASL JAAS configuration |
| secret.producer.jaas | object | {"key":"sasl.jaas.config","name":"shared-service-user"} | Secret for the Kafka SASL JAAS configuration |
| serverProperties | object | {"maxRequestSize":25165824,"requestTimeout":30} | Additional gateway server properties |
| serverProperties.maxRequestSize | int | 25165824 | Maximum request size, also after decompression. |
| serverProperties.requestTimeout | int | 30 | Maximum response time in seconds. |
| cc.enabled | bool | false | set to true, if requests should be forwarded to Confluent Cloud based brokers. |
| cc.apiKey | string | "ccApikey" | Confluent Cloud cluster API key |
| cc.apiSecret | string | "ccApiSecret" | Confluent Cloud cluster API secret |
| cc.schemaRegistryApiKey | string | "srApiKey" | Confluent Cloud schema registry API key |
| cc.schemaRegistryApiSecret | string | "srApiSecret" | Confluent Cloud schema registry API secret |
| public_key_endpoints_enabled | bool | false | Enables config of public key endpoints for token verification This config option is implemented to fix a compatibility issue with radar-gateway. It can be removed when the publicKeyUrls config option is merged to master. |
| public_key_endpoints | list | [] | List of public key endpoints for token verification |
| serverName | string | "localhost" | Resolvable server name, needed to find the advertised URL and callback URL |
| sentry.dsn | string | nil | DSN (Data Source Name) of the sentry server |
| sentry.level | string | "ERROR" | Log level for sentry (TRACE, DEBUG, INFO, WARN, or ERROR) |
| sentry.service.name | string | nil | Name of the service to be displayed in the sentry dashboard |
| sentry.service.release | string | nil | App version to be displayed in the sentry dashboard |
| sentry.service.environment | string | "production" | Environment of the sentry service |
| sentry.stacktrace.enabled | bool | true | Set to true, if stack trace should be enabled |
| sentry.stacktrace.packages | string | "org.radarbase.gateway,org.apache.avro" | Comma-separated list of package prefixes to be included in the stacktrace |
| openTelemetry.agent.enabled | bool | false | Enable Ope |
Deploy radar-gateway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has radar-gateway 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 chartradar-gateway is pinned at v1.9.2 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