BanyanDB Helm Chart repository provides ways to install and configure BanyanDB running in a cluster natively on Kubernetes.

Clone this repo:
  1. 072ec3a Avoid permanent GitOps drift on BanyanDB StatefulSets (#79) by Marc Navarro · 3 days ago master
  2. 3ad5816 Support Canopy SSO and break-glass authentication (#78) by Gao Hongtao · 3 days ago
  3. 5b59889 fix: refuse to render a schema server without a schema-property volume (#77) by Gao Hongtao · 3 days ago
  4. c7b0018 chore: disable Dependabot automatic security update PRs (#76) by 吴晟 Wu Sheng · 4 weeks ago
  5. fd1e730 Bump GitHub Actions to ASF-approved pins and infra-e2e, fix duplicate data env on Helm 4 (#75) by 吴晟 Wu Sheng · 4 weeks ago

Apache SkyWalking BanyanDB Helm Chart

BanyanDB, as an observability database, aims to ingest, analyze, and store Metrics, Tracing, and Logging data. It's designed to handle observability data generated by observability platforms and APM systems, like Apache SkyWalking etc.

BanyanDB Helm Chart repository provides ways to install and configure BanyanDB running in a cluster natively on Kubernetes. The scripts are written in Helm 3.

Chart Detailed Configuration

Introduction

This chart bootstraps an Apache Skywalking BanyanDB deployment on a Kubernetes cluster using the Helm package manager. The released versions of the helm chart can be found on Docker Hub.

Prerequisites

  • Kubernetes 1.24.0+
  • Helm 3

Installing the Chart

image.tag is the required value for the chart.

You can set these required values via command line (e.g. --set image.tag=0.8.0), or edit them in a separate file(e.g. values.yaml) and use -f <filename> or --values=<filename> to set it.

To install the chart with the release name my-release:

git clone https://github.com/apache/skywalking-banyandb-helm
cd ./skywalking-banyandb-helm
helm install my-release \
  chart \
  -n <namespace> \
  --set image.tag=<image-tag>

The command deploys BanyanDB on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm uninstall my-release -n <namespace>

The command removes all the banyandb components associated with the chart and deletes the release.

Compatibility

Chart VersionSupported BanyanDB Version
0.5.x0.9.x
0.4.00.8.x
0.3.00.7.x
0.4.0 or later0.8.0 or later

Configuration

The parameters are described in parameters.md.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Note You could refer to the helm install for more command information.

$ helm install my-release \
  chart \
  -n <namespace> \
  --set image.tag=<image-tag> \
  --set fullnameOverride=newBanyanDB

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install my-release \
  chart \
  -n <namespace> \
  --set image.tag=<image-tag> \
  -f values.yaml

Tip: You can use the default values.yaml

Authentication

Basic authentication can be enabled for liaison and standalone modes. When enabled, the chart mounts a credentials file and adds --auth-config-file to BanyanDB.

  • Enable auth and provide users (plaintext passwords):
auth:
  enabled: true
  users:
    - username: admin
      password: "changeme"
  • Use an existing Secret (recommended for production). The Secret must contain a key credentials.yaml (configurable via auth.credentialsFileKey) whose value is the YAML content in the format required by BanyanDB (docs):
auth:
  enabled: true
  existingSecret: my-banyandb-auth
  credentialsFileKey: credentials.yaml

The Secret name defaults to <release>-banyandb-auth when auto-created.

Retrieve credentials after install

If the chart created the Secret (no auth.existingSecret), you can decode it:

kubectl get secret <release-name>-banyandb-auth -n <namespace> -o jsonpath='{.data.credentials\.yaml}' | base64 --decode

Adjust the key if you changed auth.credentialsFileKey.

Canopy console

The chart can deploy canopy, the standalone web console for BanyanDB (the legacy embedded UI's replacement), for both standalone and cluster modes:

canopy:
  enabled: true

Canopy proxies /api and /monitoring, so exposing the canopy service (or canopy.ingress) gives you the console UI and the BanyanDB HTTP API on one endpoint. The image tag defaults to <image.tag>-canopy — the console ships in the same repo with a tag suffix, in lockstep with the BanyanDB image.

Console credentials

On first install the chart generates a default admin user with a strong random password (stable across upgrades). Retrieve it from the install notes or directly:

kubectl get secret <release-name>-canopy-auth -n <namespace> -o jsonpath='{.data.password}' | base64 -d; echo

To use your own credentials, either set canopy.auth.password / canopy.auth.users (bcrypt hashes), or point canopy.auth.existingSecret at a Secret containing session-secret and users.yaml keys.

SSO and break-glass

Set canopy.auth.config to the complete Canopy configuration document, including its top-level auth mapping. The chart renders it into a separate Secret and mounts it at /etc/canopy/config/auth.yaml, setting CANOPY_AUTH_CONFIG. Use an image with Canopy SSO support and continue to supply an explicit image tag.

Like Horizon's ui.envFromSecret, canopy.envFromSecret injects keys from an existing Secret in the release namespace as environment variables. Create that Secret separately through your secret-management tooling. For the example below, it must contain CANOPY_AUTH_SSO_GITHUB_CLIENT_SECRET and CANOPY_AUTH_SSO_GOOGLE_CLIENT_SECRET; neither credential belongs in values or the auth document.

canopy:
  enabled: true
  replicas: 1
  envFromSecret: canopy-sso-credentials
  auth:
    config:
      auth:
        backend: sso
        sso:
          providers:
            - id: github
              name: GitHub
              type: oauth2
              clientId: YOUR_GITHUB_CLIENT_ID
              clientSecretEnv: CANOPY_AUTH_SSO_GITHUB_CLIENT_SECRET
              authorizeUrl: https://github.com/login/oauth/authorize
              tokenUrl: https://github.com/login/oauth/access_token
              userinfoUrl: https://api.github.com/user
              emailsUrl: https://api.github.com/user/emails
              scopes: [read:user, user:email]
              redirectUri: https://canopy.example.com/auth/sso/github/callback
            - id: google
              name: Google
              type: oidc
              issuer: https://accounts.google.com
              clientId: YOUR_GOOGLE_CLIENT_ID
              clientSecretEnv: CANOPY_AUTH_SSO_GOOGLE_CLIENT_SECRET
              scopes: [openid, email, profile]
              redirectUri: https://canopy.example.com/auth/sso/google/callback
          roles:
            defaultRoles: [readonly]
            roleByEmail:
              ops@example.com: [admin]
        breakGlass:
          enabled: false
          users: []

Register the exact callback URLs with each provider, including a nonstandard port if used. Verify those registrations before reusing a Horizon OAuth client. Canopy reads client IDs literally: it does not expand Horizon's ${ENV_VAR} placeholders. Provider secrets use clientSecretEnv; an inline clientSecret is rejected. Explicit container variables (including canopy.env) take precedence over envFromSecret; avoid conflicting auth overrides, especially CANOPY_AUTH_CONFIG and CANOPY_AUTH_BACKEND.

The existing generated/local auth Secret and canopy.auth.existingSecret keep working independently of the new config Secret. CANOPY_USERS still points to their users file and takes precedence over config.auth.local.users. For SSO, explicitly select backend: sso; those local users do not automatically become emergency accounts. To enable break-glass, set config.auth.breakGlass.enabled: true and populate its users list with {username, passwordHash, role} entries (argon2id or bcrypt hashes). These accounts can log in only while SSO is unhealthy. Keep plaintext passwords out of the document; password hashes are stored in the config Secret.

Horizon configurations need these translations:

HorizonCanopy
kind, displayNametype, name
authorizationEndpoint, tokenEndpoint, userinfoEndpoint, emailsEndpointauthorizeUrl, tokenUrl, userinfoUrl, emailsUrl
viewerreadonly
maintainer, operator, adminNo intermediate roles; granting admin grants full administration
allowedDomains: []No equivalent key; admission is controlled by auth.sso.roles

An email mapping takes precedence over a domain mapping, then defaultRoles. Without a matching role, login is refused with 403. Use defaultRoles: [readonly] to admit ordinary provider users, and grant admin explicitly; copying Horizon's default maintainer role as admin would overgrant access.

Keep canopy.replicas: 1 unless routing is sticky: sessions and pending SSO logins live in server memory, and restarts sign users out. Helm config changes trigger a rollout via checksum/canopy-auth-config. Rotating the external environment Secret requires a manual rollout: kubectl rollout restart deployment/<release-name>-canopy -n <namespace>. The config uses a directory mount rather than subPath; direct Secret updates can reach Canopy's reloadable role and break-glass settings after Kubernetes projects the update, but provider changes still require a restart. GET /api/meta reports the backend, providers, SSO health and break-glass state.

Use external certificate authorities for TLS

If you'd like to use external certificate authorities, such as Vault, corresponding annotations can be injected into banyandb.

Backup and Restore

The backup and restore functionalities are supported in the BanyanDB Helm Chart. The detailed configuration can be found in backup.md.

Lifecycle Management

The lifecycle management functionalities are supported in the BanyanDB Helm Chart. The detailed configuration can be found in lifecycle.md.

Install the development version of BanyanDB using the master branch

This is needed only when you want to install BanyanDB from the master branch.

You can install BanyanDB with the default configuration as follows.

export REPO=chart
git clone https://github.com/apache/skywalking-banyandb-helm
cd skywalking-banyandb-helm
helm dependency build ${REPO}
helm install banyandb ${REPO}

Contact Us

  • Submit an issue
  • Mail list: dev@skywalking.apache.org. Mail to dev-subscribe@skywalking.apache.org, follow the reply to subscribe the mail list.
  • Send Request to join SkyWalking slack mail to the mail list(dev@skywalking.apache.org), we will invite you in.
  • For Chinese speaker, send [CN] Request to join SkyWalking slack mail to the mail list(dev@skywalking.apache.org), we will invite you in.
  • Twitter, ASFSkyWalking
  • bilibili B站 视频

LICENSE

Apache 2.0