api

by Neosync

Helm chartv0.5.41App 0.5.41Verified publisher

A Helm chart for the Neosync Backend API

About this chart

api

A Helm chart for the Neosync Backend API

Homepage: https://www.neosync.dev

Source Code

Values

KeyTypeDefaultDescription
auth.api.baseUrlstringnilThe base url to the auth service's admin url
auth.api.clientIdstringnilThe service account client id
auth.api.clientSecretstringnilThe service account client secret
auth.api.providerstringnilThe provider that should be used. Supported types are auth0 and keycloak. Default is keycloak
auth.audiencestringnilThe audience that is expected to be present in the JWT aud claim
auth.baseUrlstringnilThe base url of the auth server
auth.cliAudiencestringnilThe aud that is expected to be present when the CLI auths to the backend
auth.cliClientIdstringnilThe client id that the CLI will use to communicate with the backend for authentication (if auth is enabled)
auth.clientMapstringnilA map of clientId->clientSecret of allowed clients
auth.enabledboolfalseEnable/Disable authentication
autoscaling.behaviorstringnilThe behavior of the HPA autoscaler
autoscaling.enabledboolfalseWhether or not to install the HPA autoscaler
autoscaling.maxReplicasint4The maximum number of replicas to scale to
autoscaling.minReplicasint1The minimum amount of replicas to have running
autoscaling.targetCPUUtilizationPercentageint80The CPU % utilization to begin a scale up
containerPortint8080The container port
datadog.enabledboolfalseWhether or not to apply the default Datadog annotations/labels to the deployment
db.disableSslboolfalseWhether or not to disable SSL when connecting to the database
db.hoststringnilThe database hostname
db.namestringnilThe name of the database to connect to
db.optionsstringnilExtra database options that will be appended to the query string
db.passwordstringnilThe username's password for authentication
db.portint5432The database port
db.usernamestringnilThe username that will be used for authentication
deploymentAnnotationsobject{}Provide a map of deployment annotations that will be attached to the deployment's annotations
ee.licensestringnilNeosync Enterprise-Edition License Key
extraEnvVarslist[]Provide extra environment variables that will be applied to the deployment's user-container.
fullnameOverridestringnilFully overrides the chart name
hoststring"0.0.0.0"Sets the host that the backend will listen on. 0.0.0.0 is common for Kubernetes workloads.
image.pullPolicystringnilOverrides the default K8s pull policy
image.repositorystring"ghcr.io/nucleuscloud/neosync/api"The default image repository
image.tagstringnilOverrides the image tag whose default is {{ printf "v%s" .Chart.AppVersion }}
imagePullSecretslist[]Define a list of image pull secrets that will be used by the deployment
ingress.enabledboolfalseEnable this if using K8s ingress to expose the backend to the internet
istio.enabledboolfalseWhether or not to apply the default istio annotations/labels to the deployment
kubernetes.enabledbooltrueWhether or not this is kubernetes (should always be true)
kubernetes.namespacestringnilFalls back to the helm release namespace
kubernetes.workerAppNamestring"neosync-worker"Corresponds with the app label that is present on the worker pod
migrations.db.disableSslboolfalseWhether or not to disable SSL when connecting to the database
migrations.db.hoststringnilThe database hostname
migrations.db.migrationsTableNamestring"neosync_api_schema_migrations"This is the tablename that will be created in the postgres "public" schema
migrations.db.migrationsTableQuotedboolfalseWhether or not the tablename is quoted in the connection string
migrations.db.namestringnilThe name of the database
migrations.db.optionsstringnilExtra database options that will be appended to the query string
migrations.db.passwordstringnilThe username's password for authentication
migrations.db.portint5432The database port
migrations.db.schemaDirstring"/migrations"The directory where the migrations are located.
migrations.db.usernamestringnilThe username that will be used for authentication
migrations.enabledbooltrueWhether or not the migrations init container will be added to the deployment
migrations.extraEnvVarslist[]Provide extra environment variables that will be applied to the migration init container.
nameOverridestringnilOverride the name specified on the Chart, which defaults to .Chart.Name
neosyncCloud.enabledboolfalseWhether or not this is NeosyncCloud
neosyncCloud.workerApiKeyslist[]Worker API keys that have been allowlisted to for use
nodeSelectorobject{}Any node selectors that should be applied to the deployment
nucleusEnvstringnilMostly used by NeosyncCloud. Adds a special tag to the logging to determine what environment is running
otel.enabledboolfalsewhether or not to enable open telemetry settings
otel.otlpPortint4317Specifies the port that otel is listening on that the service will export metrics and traces to
podAnnotationsobject{}Provide a map of pod annotations that will be attached to the deployment's pod template annotations
protometrics.apiKeystringnilOptionally provide an API key if the prometheus service requires authentication
protometrics.enabledboolfalseWill enable the metrics service proto
protometrics.urlstringnilThe url, will default to http://localhost:9090 if not provided. Should be a prometheus compliant API
resources.limits.cpustring"500m"Sets the max CPU amount
resources.limits.memorystring"512Mi"Sets the max Memory amount
resources.requests.cpustring"100m"Sets the CPU amount to be requested
resources.requests.memorystring"128Mi"Sets the Memory amount to be requested
runLogs.enabledboolfalseEnable this if planning to surface logs within Neosync API and UI (requires a valid license).
runLogs.lokiConfig.baseUrlstringnilThe base url to the loki instance
runLogs.lokiConfig.keepLabelsstringnilList format.
runLogs.lokiConfig.labelsQuerystringnilLogQL labels query (without the {} as those are provided by the system)
runLogs.podConfig.workerAppNamestring"neosync-worker"Corresponds to the app label that is present on the worker pod that will be used to surface logs
runLogs.podConfig.workerNamespacestringnilThe namespace the worker lives in
runLogs.typestring"k8s-pods"Possible values: k8s-pods, loki
serviceAccount.annotationsobject{}Specify annotations here that will be attached to the service account. Useful for specifying role information or other tagging depending on environment.
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestringnilThe name of the service account to use. If namenot set and create is true, a name is generated using fullname template
servicePortint80The K8s service port
shutdownTimeoutSecondsstringnilNot currently used
sidecarContainerslist[]Provide sidecars that will be appended directly to the deployment next to the user-container
temporal.certificate.certContentsstringnilThe full contents of the certificate. Provide this or the certFilePath, not both.
temporal.certificate.certFilePathstringnilThe location of the certificate file
temporal.certificate.keyContentsstringnilThe full contents of the key. Provide this or the keyFilePath, not both.
temporal.certificate.keyFilePathstringnilThe location of the certificate key file
temporal.defaultNamespacestringnilIf not provided, falls back to hardcoded default value
temporal.defaultSyncJobQueuestringnilIf not provided, falls back to hardcoded default value
temporal.urlstring"temporal.temporal:7233"The default value based on how Temporal manifests are by default configured. Change this based on your temporal configuration
terminationGracePeriodSecondsstringnilThe amount of time in seconds to wait for the pod to shut down when a termination event has occurred.
tolerationslist[]Any tolerations that should be applied to the deployment
updateStrategystringnilThe strategy to use when rolling out new replicas
volumeMountslist[]Volumes that will be mounted to the deployment
volumeslist[]Volumes that will be attached to the deployment

Deploy api with OpenTenant

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