stardog

by Helm

Helm chartv0.26.12App 10.1.0

Stardog is the world’s leading knowledge graph platform for the enterprise. Stardog makes it fast and easy to turn enterprise data into knowledge.

About this chart

stardog

Stardog is the world’s leading knowledge graph platform for the enterprise. Stardog makes it fast and easy to turn enterprise data into knowledge.

Homepage: https://www.stardog.com/

Installation

helm repo add appuio https://charts.appuio.ch
helm install stardog appuio/stardog

Don't forget to create a secret with your Stardog license first:

kubectl create secret generic stardog-license --from-file stardog-license-key.bin=/path/to/your/license.bin

Configuration

When using Stardog in clustered mode with zookeeper.enabled=true, it's best to also enable PodDisruptionBudgets:

zookeeper:
  enabled: true
  pdb:
    create: true
    maxUnavailable: 1

Otherwise events such as draining a node can leave the cluster in a state where no cluster coordinator is left in charge, which often makes it impossible for the cluster to reassamble itself once pods become ready again.

Values

The following table lists the configurable parameters chart. For default values consult values.yaml.

ParameterDescription
replicaCountNumber of Stardog instances to run. If greater than 1, zookeeper.enabled=true must be set
image.registryThe Docker registry to pull from
image.repositoryThe Docker image repostory to pull
image.tagThe Docker image tag to pull
image.usernameThe Docker registry user name
image.passwordThe Docker registry user name
image.existingPullSecretAn existing image pull secret to use
stardog.existingLicenseSecretName of an existing secret with a key stardog-license-key.bin which contains the Stardog license
stardog.configCustom configuration to append to the stardog.properties file (as string)
stardog.adminPasswordPassword for the Administrator
stardog.usersArray of users, each element is an object with name and password
stardog.rolesObject Array of Roles to create, see below
stardog.roles[].nameName of the Role to create
stardog.roles[].grantsObject Array of permissions to add to objects
stardog.roles[].grants[].actionName of the permission to add, see Docs
stardog.roles[].grants[].objectObject that this grant should apply to, see Docs
stardog.roles[].users String array of users that should have the role assigned to. The users need to exist first
stardog.databases Arrays of databases that should be created at Helm install/upgrade. Existing databases are left untouched.
stardog.databases[].optionsObject Array of additional Database Options (each with name and value) that should be applied when creating the database.
stardog.javaArgsCustom java args, passed to the JVM
stardog.securityContextK8s security context
stardog.backup.databases[]List of DBs to be backed up. The schedule is in UTC
stardog.backup.s3RegionRegion in which the S3 bucket is
stardog.backup.s3BucketNameName of the S3 bucket
stardog.backup.s3PathPrefixPath prefix to use. Defaults to release full name
stardog.backup.s3AccessKeyS3 API access key id
stardog.backup.s3SecretKeyS3 API access secret key
stardog.backup.s3CredentialsExistingSecretOptionally existing secret with S3 credentials
stardog.memory.spilling_max_file_lengthConfigure the maximum file length when spilling data to disk
ingress.enabledIf an ingress object should be created
ingress.annotationsAnnotations to set on the ingress object
ingress.hostHost name which the ingress should resolve
ingress.tls.enabledIf TLS should be enabled on the ingress
ingress.tls.secretNameName of the secret containing the TLS certificate and key
metrics.stardogRules.extraLabelsA hash of labels to add to Stardog's PrometheusRules
metrics.zookeeperRules.extraLabelsA hash of labels to add to ZooKeeper's PrometheusRules
metrics.serviceMonitor.intervalOverwrite Prometheus' default scrape interval for the Stardog ServiceMonitor
metrics.serviceMonitor.timeoutOverwrite Prometheus' default scrape timeout for the Stardog ServiceMonitor
persistence.enabledEnable persistence using PVC
persistence.storageClassPVC storage class for Stardog data volume
persistence.sizePVC storage request size for Stardog data volume
affinityTopologyKeyTopology key on which pod anti affinity is configured
zookeeper.enabledEnable ZooKeeper. Required for Stardog Cluster deployments
zookeeper.replicaCountNumber of ZooKeeper instances to run. Should always be an odd number > 3
zookeeper.updateStrategyUpdate strategy of the ZooKeeper StatefulSet
zookeeper.auth.enabledEnable ZooKeeper authentication
zookeeper.auth.clientPasswordPassword to use for ZooKeeper clients. Will be generated if unset
zookeeper.auth.serverPasswordsPassword to use for ZooKeeper servers (delimited by ,). Will be generated if unset
zookeeper.metrics.enabledEnable ZooKeeper Prometheus exporter
zookeeper.metrics.prometheusOperatorEnable Prometheus Operator integration (requires the operator to be installed)
zookeeper.sessionTimeoutSet the ZooKeeper session timeout
zookeeper.autopurge.snapRetainCountHow many snapshots ZooKeeper should keep when autopurging
zookeeper.autopurge.purgeIntervalInterval (in hours) for ZooKeeper autopurge

Requirements

RepositoryNameVersion
https://raw.githubusercontent.com/bitnami/charts/b661ad0e6e3277fc5b5b2db197cba47174693712/bitnami/zookeeper9.2.7

Deploy stardog with OpenTenant

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