radar-push-endpoint

by RADAR-Base

Helm chartv0.7.1App 1.0.0Apache-2.0Verified publisher

A Helm chart for RADAR-base Push Endpoint. REST Gateway to Kafka, for incoming data from Push or Subscription based WEB APIs. It performs authentication, authorization and content validation. For more details of the configurations, see https://github.com/RADAR-base/RADAR-PushEndpoint.

About this chart

radar-push-endpoint

A Helm chart for RADAR-base Push Endpoint. REST Gateway to Kafka, for incoming data from Push or Subscription based WEB APIs. It performs authentication, authorization and content validation. For more details of the configurations, see https://github.com/RADAR-base/RADAR-PushEndpoint.

Homepage: https://radar-base.org

Maintainers

NameEmailUrl
Yatharth Ranjan[email protected]https://www.kcl.ac.uk/people/yatharth-ranjan
Pauline Conde[email protected]https://www.kcl.ac.uk/people/pauline-conde

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)
  • When gatewayAPI.enabled=true: the Gateway API CRDs and a Gateway Controller (e.g. NGINX Gateway Fabric) must already be installed in the cluster, and the shared parent Gateway radar-base-k8s-gateway must exist — it can be created via the gateway-api chart

Requirements

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

Values

KeyTypeDefaultDescription
replicaCountint2Number of radar-push-endpoint replicas to deploy
image.registrystring"docker.io"Image registry
image.repositorystring"radarbase/radar-push-endpoint"Image repository
image.tagstring"1.0.0"Image 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-push-endpoint.fullname template with a string (will prepend the release name)
fullnameOverridestring""String to fully override radar-push-endpoint.fullname template with a string
podSecurityContextobject{}Configure radar-push-endpoint pods' Security Context
securityContextobject{}Configure radar-push-endpoint containers' Security Context
service.typestring"ClusterIP"Kubernetes Service type
service.portint8090radar-push-endpoint port
disable_tlsboolfalseReconfigure Ingress to not force TLS
ingress.enabledbooltrueEnable ingress controller resource
ingress.annotationsobjectcheck values.yamlAnnotations that define default ingress class, certificate issuer and deny access to sensitive URLs
ingress.pathstring"/push-endpoint/?(.*)"Path within the url structure. The (.*) group is the $1 of the rewrite-target annotation, so the two must be changed together.
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"/push-endpoint"Path to match within the URL structure
gatewayAPI.filterslist[]Additional HTTPRoute filters (e.g. URLRewrite, RequestHeaderModifier) NOTE: the ingress server-snippet for /push-endpoint/garmin (20M client_max_body_size and the Garmin Health API source-IP allow-list) has no standard HTTPRoute equivalent and is NOT replicated here. Configure it with your Gateway controller's implementation-specific policies (e.g. NGINX Gateway Fabric ClientSettingsPolicy / SnippetsFilter) before exposing this route publicly.
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":"128Mi"}CPU/Memory resource requests
nodeSelectorobject{}Node labels for pod assignment
tolerationslist[]Toleration labels for pod assignment
affinityobject{}Affinity labels for pod assignment
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.timeoutSecondsint30Timeout 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.timeoutSecondsint30Timeout 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.timeoutSecondsint30Timeout seconds for startupProbe
startupProbe.successThresholdint1Success threshold for startupProbe
startupProbe.failureThresholdint30Failure threshold for startupProbe
serviceMonitor.enabledbooltrueEnable metrics to be collected via Prometheus-operator
hpa.enabledboolfalseEnable HPA
hpa.maxReplicasstring"5"Maximum number of replicas
hpa.targetCPUstring"80"Target CPU utilization percentage
hpa.targetMemorystringnilTarget Memory utilization percentage
networkpolicyobjectcheck values.yamlNetwork policy defines who can access this application and who this applications has access to
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
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
garmin.enabledbooltrueWhether to enable Garmin endpoints
garmin.oauthVersionstring""OAuth version to use: "oauth2" for PKCE flow, "oauth1" for legacy flow. Only understood by PushEndpoint builds that carry the Garmin OAuth2 migration; other builds reject the unknown key and refuse to start, so leave this empty to omit it from the config entirely.
garmin.consumerKeystring"consumerKey"Consumer key for you application in Garmin Health API developer portal
garmin.consumerSecretstring"consumerSecret"Consumer secret for you application in Garmin Health API developer portal
garmin.userRepositoryClassstring"org.radarbase.push.integration.garmin.user.GarminServiceUserRepository"The user repository to use for getting list of users and their authorization information
garmin.userRepositoryUrlstring"http://radar-rest-sources-backend:8080/rest-sources/backend"The base url of the user repository if the repository is http(s) based.
garmin.userRepositoryClientIdstring"radar_push_endpoint"The client ID to access the user repository if the repository requires authorization
garmin.userRepositoryClientSecretstring"secret"The client secret to access the user repository if th

Deploy radar-push-endpoint with OpenTenant

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