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.
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.
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
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.
| Chart Version | Supported BanyanDB Version |
|---|---|
| 0.5.x | 0.9.x |
| 0.4.0 | 0.8.x |
| 0.3.0 | 0.7.x |
| 0.4.0 or later | 0.8.0 or later |
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
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.
auth: enabled: true users: - username: admin password: "changeme"
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.
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.
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.
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.
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:
| Horizon | Canopy |
|---|---|
kind, displayName | type, name |
authorizationEndpoint, tokenEndpoint, userinfoEndpoint, emailsEndpoint | authorizeUrl, tokenUrl, userinfoUrl, emailsUrl |
viewer | readonly |
maintainer, operator, admin | No 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.
If you'd like to use external certificate authorities, such as Vault, corresponding annotations can be injected into banyandb.
The backup and restore functionalities are supported in the BanyanDB Helm Chart. The detailed configuration can be found in backup.md.
The lifecycle management functionalities are supported in the BanyanDB Helm Chart. The detailed configuration can be found in lifecycle.md.
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}
dev-subscribe@skywalking.apache.org, follow the reply to subscribe the mail list.Request to join SkyWalking slack mail to the mail list(dev@skywalking.apache.org), we will invite you in.[CN] Request to join SkyWalking slack mail to the mail list(dev@skywalking.apache.org), we will invite you in.Apache 2.0