cbt-api

by ethPandaOps

Helm chartv0.0.15Verified publisher

API server for CBT

About this chart

cbt-api

API server for CBT

Homepage: https://github.com/ethpandaops/cbt-api

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the Deployment
argslist[]Command arguments
autoscaling.enabledboolfalseAutoscaling configuration
autoscaling.maxReplicasint3Maximum number of replicas
autoscaling.minReplicasint2Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint85Target CPU utilization percentage
config.api.base_pathstring"/api/v1"
config.api.expose_prefixes[0]string"fct"
config.clickhouse.conn_max_lifetimestring"60s"
config.clickhouse.databasestring"mainnet"
config.clickhouse.dial_timeoutstring"10s"
config.clickhouse.discovery.excludestringnil
config.clickhouse.discovery.prefixes[0]string"fct"
config.clickhouse.dsnstring"https://user:pass@host"
config.clickhouse.insecure_skip_verifyboolfalse
config.clickhouse.max_execution_timeint60
config.clickhouse.max_idle_connsint5
config.clickhouse.max_open_connsint10
config.clickhouse.read_timeoutstring"30s"
config.clickhouse.use_finalbooltrue
config.clickhouse.write_timeoutstring"30s"
config.headers.policieslist[]
config.proto.go_packagestring"github.com/ethpandaops/cbt-api/pkg/proto/clickhouse"
config.proto.include_commentsbooltrue
config.proto.output_dirstring"./pkg/proto/clickhouse"
config.proto.packagestring"cbt.v1"
config.server.hoststring"0.0.0.0"
config.server.idle_timeoutstring"120s"
config.server.portint8080
config.server.read_header_timeoutstring"10s"
config.server.read_timeoutstring"30s"
config.server.write_timeoutstring"30s"
config.telemetry.always_sample_errorsbooltrue
config.telemetry.enabledboolfalse
config.telemetry.endpointstring"tempo.example.com:443"
config.telemetry.environmentstring"mainnet"
config.telemetry.export_batch_sizeint512
config.telemetry.export_timeoutstring"10s"
config.telemetry.insecureboolfalse
config.telemetry.sample_ratefloat0.1
config.telemetry.service_namestring"cbt-api"
config.telemetry.service_versionstring"1.0.0"
containerSecurityContextobjectSee values.yamlThe security context for containers
customArgslist[]Custom args for the cbt-api container
customCommandlist[]Command replacement for the cbt-api container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPodPortslist[]Extra Pod ports
extraPortslist[]Additional ports. Useful when using extraContainers
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
image.pullPolicystring"IfNotPresent"cbt-api container pull policy
image.repositorystring"ethpandaops/cbt-api"cbt-api container image repository
image.tagstring"latest"cbt-api container image tag
imagePullSecretslist[]Image pull secrets for Docker images
ingress.annotationsobject{}Annotations for Ingress
ingress.enabledboolfalseIngress resource for the HTTP API
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initContainerslist[]Additional init containers
lifecycleobjectSee values.yamlLifecycle hooks
livenessProbeobjectSee values.yamlLiveness probe
nameOverridestring""Overrides the chart's name
nodeSelectorobject{}Node selector for pods
podAnnotationsobject{}Pod annotations
podDisruptionBudgetobject{}Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podLabelsobject{}Pod labels
priorityClassNamestringnilPod priority class
readinessProbeobjectSee values.yamlReadiness probe
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
secretEnvobject{}Secret env variables injected via a created secret
securityContextobjectSee values.yamlThe security context for pods
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createboolfalseSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"15s"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/metrics"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
strategyobject{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}Deployment rollout strategy
terminationGracePeriodSecondsint90How long to wait until the pod is forcefully terminated
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods

Deploy cbt-api with OpenTenant

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