centralbrain

by ScienceMesh

Helm chartv0.0.3App 0.0.1Verified publisher

Central Brain is the obserbavility component for the IOP

About this chart

Central-Brain

Examples:

Scrape metrics from iop-revad in Prometheus

$ cat << EOF > scrape-metrics-from-revad.yaml
iop:
  revad:
    configFiles:
      revad.toml: |
        [shared]
        jwt_secret = "mysecret"

        [http]
        address = "0.0.0.0:20080"

        # Enable monitoring services
        [http.services.prometheus]

centralbrain:
  prometheus:
    extraScrapeConfigs: |
      - job_name: 'revad'
        static_configs:
          - targets:
              - iop-revad:20080
EOF

$ helm upgrade iop sciencemesh/iop -f scrape-metrics-from-revad.yaml

$ helm upgrade centralbrain sciencemesh/centralbrain -f scrape-metrics-from-revad.yaml
  • [ ] TODO (@SamuAlfagme): Determine whether a sidecar for revad is required to reload config on upgrades.

Deploy centralbrain with OpenTenant

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