radar-gateway

by RADAR-Base

Helm chartv1.9.2App 0.9.4Apache-2.0Verified publisher

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

NameEmailUrl
Pim van Nierop[email protected]https://www.thehyve.nl/experts/pim-van-nierop

Source Code

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

RepositoryNameVersion
https://radar-base.github.io/radar-helm-chartscommon2.x.x

Values

KeyTypeDefaultDescription
replicaCountint2Number of radar-gateway replicas to deploy
image.registrystring"ghcr.io"Image registry
image.repositorystring"radar-base/radar-gateway/radar-gateway"Image repository
image.tagstringnilImage tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion.
image.digeststring""Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName
image_exporter.registrystring"docker.io"Image registry
image_exporter.repositorystring"sscaling/jmx-prometheus-exporter"Image repository
image_exporter.tagstringnilImage tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion.
image_exporter.digeststring"sha256:48e3bd31f132146751e449429a3e8a260b141f2acd587878fc50b3eda4466c5d"Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
image_exporter.pullPolicystring"IfNotPresent"Image pull policy
image_exporter.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName
nameOverridestring""String to partially override radar-gateway.fullname template with a string (will prepend the release name)
fullnameOverridestring""String to fully override radar-gateway.fullname template with a string
podSecurityContextobject{}Configure radar-gateway pods' Security Context
securityContextobject{}Configure radar-gateway containers' Security Context
service.typestring"ClusterIP"Kubernetes Service type
service.portint8080radar-gateway port
disable_tlsboolfalseReconfigure Ingress to not force TLS
advertised_protocolstring"https"The protocol in advertised URIs (https, http)
ingress.enabledbooltrueEnable ingress controller resource
ingress.annotationsobjectcheck values.yamlAnnotations that define default ingress class, certificate issuer and deny access to sensitive URLs
ingress.pathstring"/kafka/?(.*)"Path within the url structure
ingress.pathTypestring"ImplementationSpecific"Ingress Path type
ingress.ingressClassNamestring"nginx"IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
ingress.hostslist["localhost"]Hosts to accept requests from
ingress.tls.secretNamestring"radar-base-tls"Name of the secret that contains TLS certificates
gatewayAPI.enabledboolfalseEnable Gateway API HTTPRoute resource (alternative to ingress). Opt-in: requires the Gateway API CRDs and a Gateway controller to be installed.
gatewayAPI.annotationsobject{}Annotations to add to the HTTPRoute
gatewayAPI.parentRefobject{"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.namestring"radar-base-k8s-gateway"Name of the Gateway
gatewayAPI.parentRef.namespacestring""Namespace of the Gateway (defaults to the release namespace when empty)
gatewayAPI.hostnameslist["{{ .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.httpsobject{"port":443,"sectionName":""}HTTPS listener on the Gateway that the main route attaches to
gatewayAPI.https.portint443Listener port (empty attaches to all matching listeners)
gatewayAPI.https.sectionNamestring""Listener sectionName on the Gateway (optional)
gatewayAPI.pathTypestring"PathPrefix"Path match type (PathPrefix, Exact or RegularExpression)
gatewayAPI.pathstring"/kafka"Path to match within the URL structure
gatewayAPI.filterslistcheck values.yamlAdditional HTTPRoute filters (e.g. URLRewrite, RequestHeaderModifier)
gatewayAPI.httpsRedirectobject{"enabled":true,"port":80,"sectionName":"","statusCode":301}HTTP->HTTPS redirect route (equivalent to nginx force-TLS behaviour)
gatewayAPI.httpsRedirect.enabledbooltrueEnable a second HTTPRoute that 301-redirects HTTP traffic to HTTPS
gatewayAPI.httpsRedirect.portint80HTTP listener port on the Gateway to attach the redirect to
gatewayAPI.httpsRedirect.sectionNamestring""Listener sectionName on the Gateway (optional)
gatewayAPI.httpsRedirect.statusCodeint301Redirect HTTP status code
resources.requestsobject{"cpu":"100m","memory":"400Mi"}CPU/Memory resource requests
nodeSelectorobject{}Node labels for pod assignment
tolerationslist[]Toleration labels for pod assignment
affinityobject{}Affinity labels for pod assignment
javaOptsstring"-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
extraEnvVarslist[]Extra environment variables
customLivenessProbeobject{}Custom livenessProbe that overrides the default one
livenessProbe.enabledbooltrueEnable livenessProbe
livenessProbe.initialDelaySecondsint5Initial delay seconds for livenessProbe
livenessProbe.periodSecondsint30Period seconds for livenessProbe
livenessProbe.timeoutSecondsint5Timeout seconds for livenessProbe
livenessProbe.successThresholdint1Success threshold for livenessProbe
livenessProbe.failureThresholdint3Failure threshold for livenessProbe
customReadinessProbeobject{}Custom readinessProbe that overrides the default one
readinessProbe.enabledbooltrueEnable readinessProbe
readinessProbe.initialDelaySecondsint5Initial delay seconds for readinessProbe
readinessProbe.periodSecondsint30Period seconds for readinessProbe
readinessProbe.timeoutSecondsint5Timeout seconds for readinessProbe
readinessProbe.successThresholdint1Success threshold for readinessProbe
readinessProbe.failureThresholdint3Failure threshold for readinessProbe
customStartupProbeobject{}Custom startupProbe that overrides the default one
startupProbe.enabledbooltrueEnable startupProbe
startupProbe.initialDelaySecondsint5Initial delay seconds for startupProbe
startupProbe.periodSecondsint10Period seconds for startupProbe
startupProbe.timeoutSecondsint10Timeout seconds for startupProbe
startupProbe.successThresholdint1Success threshold for startupProbe
startupProbe.failureThresholdint30Failure threshold for startupProbe
networkpolicyobjectcheck values.yamlNetwork policy defines who can access this application and who this applications has access to
serviceMonitor.enabledbooltrueEnable metrics to be collected via Prometheus-operator
jmxExporter.resourcesobject{}
hpa.enabledbooltrueEnable HPA
hpa.maxReplicasstring"5"Maximum number of replicas
hpa.targetCPUstring"80"Target CPU utilization percentage
hpa.targetMemorystringnilTarget Memory utilization percentage
managementportal_urlstring"http://management-portal:8080/managementportal"URL of the management portal application
schemaRegistrystring"http://radar-kafka-schema-registry:8081"Schema Registry URL
max_requestsint1000Not used. To be confirmed
bootstrapServersstring"radar-kafka-kafka-bootstrap:9094"Kafka broker URLs
checkSourceIdbooltrueset to true, if sources in access token should be validated
adminPropertiesobject{"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.
producerPropertiesobject{"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.
serializationPropertiesobject{}Additional Kafka serialization settings, used in KafkaAvroSerializer. Read from [io.confluent.kafka.serializers.AbstractKafkaSchemaSetDeConfig].
secret.admin.jaasobject{"key":"sasl.jaas.config","name":"shared-service-user"}Secret for the Kafka SASL JAAS configuration
secret.producer.jaasobject{"key":"sasl.jaas.config","name":"shared-service-user"}Secret for the Kafka SASL JAAS configuration
serverPropertiesobject{"maxRequestSize":25165824,"requestTimeout":30}Additional gateway server properties
serverProperties.maxRequestSizeint25165824Maximum request size, also after decompression.
serverProperties.requestTimeoutint30Maximum response time in seconds.
cc.enabledboolfalseset to true, if requests should be forwarded to Confluent Cloud based brokers.
cc.apiKeystring"ccApikey"Confluent Cloud cluster API key
cc.apiSecretstring"ccApiSecret"Confluent Cloud cluster API secret
cc.schemaRegistryApiKeystring"srApiKey"Confluent Cloud schema registry API key
cc.schemaRegistryApiSecretstring"srApiSecret"Confluent Cloud schema registry API secret
public_key_endpoints_enabledboolfalseEnables 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_endpointslist[]List of public key endpoints for token verification
serverNamestring"localhost"Resolvable server name, needed to find the advertised URL and callback URL
sentry.dsnstringnilDSN (Data Source Name) of the sentry server
sentry.levelstring"ERROR"Log level for sentry (TRACE, DEBUG, INFO, WARN, or ERROR)
sentry.service.namestringnilName of the service to be displayed in the sentry dashboard
sentry.service.releasestringnilApp version to be displayed in the sentry dashboard
sentry.service.environmentstring"production"Environment of the sentry service
sentry.stacktrace.enabledbooltrueSet to true, if stack trace should be enabled
sentry.stacktrace.packagesstring"org.radarbase.gateway,org.apache.avro"Comma-separated list of package prefixes to be included in the stacktrace
openTelemetry.agent.enabledboolfalseEnable 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartradar-gateway is pinned at v1.9.2 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