config-db

by Flanksource

Helm chartv0.0.1479App 0.0.5Verified publisher

A Helm chart for config-db

About this chart

config-db

A Helm chart for config-db

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules for pod scheduling
clickhouse.enabledboolfalseEnable ClickHouse for analytics
clickhouse.image.namestring""ClickHouse image name. Defaults to the upstream image on Docker Hub and the Flanksource mirror on other registries.
clickhouse.image.tagstring"25.4"ClickHouse image tag
clickhouse.propertiesobject{"keep_alive_timeout":"300","mark_cache_size":"67108864","max_concurrent_queries":"10","max_connections":"4","uncompressed_cache_size":"134217728"}ClickHouse server properties
clickhouse.resources.limits.cpustring"1"
clickhouse.resources.limits.memorystring"4Gi"
clickhouse.resources.requests.cpustring"100m"
clickhouse.resources.requests.memorystring"2Gi"
configAnalysisRetentionDaysint60Retention days for config analysis
configChangeRetentionDaysint60Retention days for config changes
db.embedded.persistbooltrueIf the database is embedded, setting this to true will persist the contents of the database through a persistent volume
db.embedded.storagestring"20Gi"Storage size for the embedded database persistent volume
db.embedded.storageClassstring""Storage class for the embedded database persistent volume
db.external.createboolfalseSetting create:true will create - a postgres stateful set - the secret & - the service to expose the postgres stateful set. By default, the generated secret will use 'postgres' as the username and a randomly generated password. If you need to set a custom username and password, you can populate a secret named 'postgres-connection' before install with POSTGRES_USER and POSTGRES_PASSWORD If create:false, a preexisting secret containing the URI to an existing postgres database must be provided The URI must be in the format 'postgresql://"$user":"$password"@"$host"/"$database"'
db.external.enabledboolfalseSetting enabled to true will use an external postgres DB. You can either use the embedded db or an external db. If both is enabled, then embedded db will take precedence.
db.external.secretKeyRef.keystring"DB_URL"This is the key that we look for in the secret.
db.external.secretKeyRef.namestring"config-db-postgresql"The name of the secret to look for.
db.external.storagestring"20Gi"Storage size for the external database persistent volume (if create=true)
db.external.storageClassstring""Storage class for the external database persistent volume (if create=true)
db.runMigrationsbooltrueRun database migrations on startup
disablePostgrestboolfalseSet to true if you want to disable the postgrest service
envobject{}
extraobject{}
extraArgsobject{}
extraEnvFromlist[]
global.affinityobject{}
global.db.connectionPooler.enabledboolfalse
global.db.connectionPooler.secretKeyRef.keystring"DB_URL"
global.db.connectionPooler.secretKeyRef.namestring"mission-control-connection-pooler"
global.imagePrefixstring"flanksource"Global image prefix to use for all images
global.imagePullSecretslist[]Global image pull secrets
global.imageRegistrystring"docker.io"Global image registry to use for all images
global.labelsobject{}
global.nodeSelectorobject{}
global.otel.collectorstring""OpenTelemetry gRPC collector endpoint in host:port format
global.otel.labelsstring""labels in "a=b,c=d" format
global.serviceAccount.annotationsobject{}
global.serviceAccount.namestring""Note unlike other globals, the global serviceAccount.name overrides the local value
global.serviceMonitor.enabledboolfalseSet to true to enable prometheus service monitor globally
global.serviceMonitor.labelsobject{}
global.tolerationslist[]
image.namestring"{{.Values.global.imagePrefix}}/config-db"Name of the main application image
image.pullPolicystring"IfNotPresent"Image pull policy
image.tagstring"latest"Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Image pull secrets for the main application image
imageRegistrystring""Image registry for the main application image. Overrides global.imageRegistry if set.
ingress.annotationsobject{}
ingress.enabledboolfalseEnable ingress for the application
ingress.hoststring"config-db.local"Hostname for the ingress
ingress.tlslist[]TLS configuration for the ingress
jsonLogsbooltrueEnable JSON formatted logs
logLevelstring""Log level for the application (e.g., info, debug, error)
nameOverridestring""Use this only if you want to replace the default that is .Chart.Name as the name of all the objects.
nodeSelectorobject{}Node selector for pod assignment
otel.collectorstring""OpenTelemetry gRPC collector endpoint in host:port format
otel.labelsstring""labels in "a=b,c=d" format
otel.serviceNamestring"config-db"OpenTelemetry service name
podSecurityContext.fsGroupint1000
propertiesobject{}
replicasint1Number of replicas for the deployment
resources.limits.cpustring"500m"
resources.limits.memorystring"4Gi"
resources.requests.cpustring"200m"
resources.requests.memorystring"1Gi"
scrapeRuleConfigMapslist["config-db-rules"]a list of configmaps to load scrape rules from, the configmap should have a single entry called "config.yaml"
securityContextobject{}
serviceAccount.annotationsobject{}
serviceAccount.createbooltrueCreate a new service account
serviceAccount.namestring"config-db-sa"Name of the service account to use or create
serviceAccount.rbac.clusterRolebooltrueWhether to create cluster-wide or namespaced roles
serviceAccount.rbac.configmapsbooltruefor secret management with valueFrom
serviceAccount.rbac.execbooltruefor kubernetesFile lookups
serviceAccount.rbac.readAllbooltruefor use with kubernetes resource lookups
serviceAccount.rbac.secretsbooltruefor secret management with valueFrom
serviceAccount.rbac.tokenRequestbooltruefor secret management with valueFrom
serviceMonitor.enabledboolfalseSet to true to enable prometheus service monitor for this service
serviceMonitor.labelsobject{}
tolerationslist[]Tolerations for pod scheduling
upstream.enabledboolfalseEnable upstream configuration
upstream.pageSizeint500Page size for upstream communication
upstream.secretKeyRef.namestring"config-db-upstream"Name of the secret containing upstream credentials. Must contain: AGENT_NAME, UPSTREAM_USER, UPSTREAM_PASSWORD & UPSTREAM_HOST
volumeMountslist[]Additional volumeMounts on the output Deployment definition.
volumeslist[]Additional volumes on the output Deployment definition.

Deploy config-db with OpenTenant

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