radar-oura-connector

by RADAR-Base

Helm chartv0.5.3App 0.7.5Apache-2.0Verified publisher

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

About this chart

radar-oura-connector

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

Homepage: https://radar-base.org

Maintainers

NameEmailUrl
Pauline Conde[email protected]https://www.kcl.ac.uk/people/pauline-conde
Yatharth Ranjan[email protected]https://www.kcl.ac.uk/people/yatharth-ranjan
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-oura-connector replicas to deploy
image.registrystring"ghcr.io"Image registry
image.repositorystring"radar-base/radar-rest-connector/kafka-connect-oura-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-oura-connector.fullname template with a string (will prepend the release name)
fullnameOverridestring""String to fully override radar-oura-connector.fullname template with a string
podSecurityContextobject{}Configure radar-oura-connector pods' Security Context
securityContextobject{}Configure radar-oura-connector containers' Security Context
service.typestring"ClusterIP"Kubernetes Service type
service.portint8083radar-oura-connector port
resources.requestsobject{"cpu":"100m","memory":"1Gi"}CPU/Memory resource requests
persistence.enabledbooltrueEnable persistence using PVC
persistence.accessModestring"ReadWriteOnce"PVC Access Mode for radar-oura-connector volume
persistence.sizestring"5Gi"PVC Storage Request for radar-oura-connector volume
persistence.fsUserOverridestringnilOverrides the user of the oura 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
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_num_tasksstring"5"Number of connector tasks to be used in connector.properties
oura_api_clientstring""Oura API client id.
oura_api_secretstring""Oura API client secret.
oauthClientIdstring"radar_oura_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"OuraServiceUserRepository"Class name of the user repository. This should be the same as the one used in the connector.
routesobject{"dailyActivity":{"enabled":true},"dailyCardiovascularAge":{"enabled":true},"dailyOxygenSaturation":{"enabled":true},"dailyReadiness":{"enabled":true},"dailyResilience":{"enabled":true},"dailySleep":{"enabled":true},"dailyStress":{"enabled":true},"enhancedTag":{"enabled":true},"heartRate":{"enabled":true},"personalInfo":{"enabled":true},"restModePeriod":{"enabled":true},"ringConfiguration":{"enabled":true},"session":{"enabled":true},"sleep":{"enabled":true},"sleepTimeRecommendation":{"enabled":true},"tag":{"enabled":true},"vo2Max":{"enabled":true},"workout":{"enabled":true}}Whether to include the specific routes.

Deploy radar-oura-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-oura-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-oura-connector is pinned at v0.5.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