radar-fitbit-connector

by RADAR-Base

Helm chartv0.11.3App 0.7.5Apache-2.0Verified publisher

A Helm chart for RADAR-base fitbit connector. This application collects data from participants via the Fitbit Web API.

About this chart

radar-fitbit-connector

A Helm chart for RADAR-base fitbit connector. This application collects data from participants via the Fitbit Web API.

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+
  • PV provisioner support in the underlying infrastructure

Requirements

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

Values

KeyTypeDefaultDescription
replicaCountint1Number of radar-fitbit-connector replicas to deploy
image.registrystring"ghcr.io"Image registry
image.repositorystring"radar-base/radar-rest-connector/kafka-connect-fitbit-source"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
nameOverridestring""String to partially override radar-fitbit-connector.fullname template with a string (will prepend the release name)
fullnameOverridestring""String to fully override radar-fitbit-connector.fullname template with a string
podSecurityContextobject{}Configure radar-fitbit-connector pods' Security Context
securityContextobject{}Configure radar-fitbit-connector containers' Security Context
service.typestring"ClusterIP"Kubernetes Service type
service.portint8083radar-fitbit-connector port
resources.requestsobject{"cpu":"100m","memory":"1Gi"}CPU/Memory resource requests
heapOptionsstring"-Xms256m -Xmx768m"
persistence.enabledbooltrueEnable persistence using PVC
persistence.accessModestring"ReadWriteOnce"PVC Access Mode for radar-fitbit-connector volume
persistence.sizestring"5Gi"PVC Storage Request for radar-fitbit-connector volume
persistence.fsUserOverridestringnilOverrides the user of the fitbit connector logs, for example, "1000:1000".
nodeSelectorobject{}Node labels for pod assignment
tolerationslist[]Toleration labels for pod assignment
affinityobject{}Affinity labels for pod assignment
secret.jaasobject{"key":"sasl.jaas.config","name":"shared-service-user"}Secret for the Kafka SASL JAAS configuration
extraEnvVarslist[{"name":"CONNECT_SECURITY_PROTOCOL","value":"SASL_PLAINTEXT"},{"name":"CONNECT_PRODUCER_SECURITY_PROTOCOL","value":"SASL_PLAINTEXT"},{"name":"CONNECT_SASL_MECHANISM","value":"SCRAM-SHA-512"},{"name":"CONNECT_PRODUCER_SASL_MECHANISM","value":"SCRAM-SHA-512"}]Extra environment variables
extraEnvVars[0]object{"name":"CONNECT_SECURITY_PROTOCOL","value":"SASL_PLAINTEXT"}Protocol used to communicate with brokers. Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL.
extraEnvVars[2]object{"name":"CONNECT_SASL_MECHANISM","value":"SCRAM-SHA-512"}Mechanism used to authenticate with SASL. Valid values are: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512.
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
zookeeperstringnilURI of Zookeeper instances of the cluster. Leave unset on default RADAR-base deployment (uses Kraft).
kafkastring"SASL_PLAINTEXT://radar-kafka-kafka-bootstrap:9094"URI of Kafka brokers of the cluster
kafka_num_brokersstring"3"Number of Kafka brokers. This is used to validate the cluster availability at connector init.
schema_registrystring"http://radar-kafka-schema-registry:8081"URL of the Kafka schema registry
kafka_wait.enabledbooltrueWhether to wait before the specified number of brokers are available.
kafka_wait.propertiesstring""Kafka connection properties file contents during wait. If empty, all environment variables starting with CONNECT_ will be used.
radar_rest_sources_backend_urlstring"http://radar-rest-sources-backend:8080/rest-sources/backend/"Base URL of the rest-sources-authorizer-backend service
connector_groupstring"radar-fitbit-source"Name of the connector group
connector_num_tasksstring"5"Number of connector tasks to be used in connector.properties
fitbit_api_urlstring"https://api.fitbit.com"Fitbit API URL.
fitbit_api_clientstring""Fitbit API client id.
fitbit_api_secretstring""Fitbit API client secret.
oauthClientIdstring"radar_fitbit_connector"OAuth2 client id from Management Portal
oauthClientSecretstring"secret"OAuth2 client secret from Management Portal
auth_urlstring"http://management-portal:8080/managementportal/oauth/token"OAuth2 Auth URL for connector client to get access tokens
managementportal_urlstring"http://management-portal:8080/managementportal"URL of Management Portal. This will be used to create URLs to access Management Portal
includeIntradayDatabooltrueSet to true, if intraday access data should be collected by the connector. This will be set in connector.properties.
user_repository_classstring"ServiceUserRepository"Class of the user repository to use. This should be a class that implements the UserRepository interface.
rest_source_poll_interval_msint60000How often to poll the source URL. Only use to speed up processing times during e2e testing.
fitbit_user_poll_intervalint150Polling interval per Fitbit user per request route in seconds. Only use to speed up processing times during e2e testing.
application_loop_interval_msint300000How often to perform the main application loop (only controls how often to poll for new user registrations). Only use to speed up processing times during e2e testing.
user_cache_refresh_interval_msint3600000How often to invalidate the cache and poll for new user registrations. Only use to speed up processing times during e2e testing.
routesobject{"activityLog":{"enabled":true,"topic":"connect_fitbit_activity_log"},"breathingRate":{"enabled":true,"topic":"connect_fitbit_breathing_rate"},"intradayCalories":{"enabled":true,"topic":"connect_fitbit_intraday_calories"},"intradayHeartRate":{"enabled":true,"topic":"connect_fitbit_intraday_heart_rate"},"intradayHeartRateVariability":{"enabled":true,"topic":"connect_fitbit_intraday_heart_rate_variability"},"intradaySpo2":{"enabled":true,"topic":"connect_fitbit_intraday_spo2"},"intradaySteps":{"enabled":true,"topic":"connect_fitbit_intraday_steps"},"restingHeartRate":{"enabled":true,"topic":"connect_fitbit_resting_heart_rate"},"skinTemperature":{"enabled":true,"topic":"connect_fitbit_skin_temperature"},"sleepClassic":{"enabled":true,"topic":"connect_fitbit_sleep_classic"},"sleepStages":{"enabled":true,"topic":"connect_fitbit_sleep_stages"},"timezone":{"enabled":true,"topic":"connect_fitbit_timezone"}}Whether to include the specific routes and to specify the topics to use for each route.
usersFileobject{"users":[]}Only used when user_repository_class is YamlUserRepository
usersFile.userslist[]Users to be included in the users yaml file.

Deploy radar-fitbit-connector with OpenTenant

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