betydb

by NCSA

Helm chartv0.6.1App 5.4.1Verified publisher

Web-interface to the Biofuel Ecophysiological Traits and Yields Database (used by PEcAn and TERRA REF)

About this chart

Bety

Bety is a Web-interface to the Biofuel Ecophysiological Traits and Yields Database (used by PEcAn and TERRA REF)

Prerequisites

Installation

Before installing chart, make sure you enable NCSA repository.

helm repo add ncsa https://opensource.ncsa.illinois.edu/charts/

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

helm install my-release ncsa/betydb

Tip: List all releases using helm list

The command deploys Betydb on the Kubernetes cluster in the default namespace and configuration.

To install the chart in a specific namespace:

kubectl create namespace my-namepsace
helm install my-release ncsa/betydb -n my-namepsace

If the password is generated you will need to save this secret before you upgrade. You can do this using the following commands. If you do not do this, you will not be able to retrieve the previous secrets.

echo BETY_PASSWORD=$(kubectl get secrets betydb -o json | jq -r '.data.betyPassword' | base64 -d)
echo BETY_SECRETKEY=$(kubectl get secrets betydb -o json | jq -r '.data.secretKey' | base64 -d)
echo POSTGRESQL_PASSWORD=$(kubectl get secrets betydb-postgresql -o json | jq -r '.data."postgresql-password"' | base64 -d)

Tip: List all secrets in the default namespace

If you wanted to have it into the particular namespace, you can try below sample one

echo BETY_PASSWORD=$(kubectl get secrets betydb -n your_namespace -o json | jq -r '.data.betyPassword' | base64 -d)

Tip: Make sure you have created your own namespace before listing out the secrets kubectl create namespace your_namespace.

Upgrading BETY

You can also upgrade and use the secrets retrieved.

helm upgrade betydb ncsa/betydb \
    --set betyPassword="${BETY_PASSWORD}" \
    --set secretKey="${BETY_SECRETKEY}" \
    --set postgresql.postgresqlPassword="${POSTGRESQL_PASSWORD}"

Parameters

The following table lists the configurable parameters of the Bety chart and their default values per section/component:

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override bety.fullnamenil
fullnameOverrideString to fully override bety.fullnamenil

Bety parameters

ParameterDescriptionDefault
image.registryBety image registrydocker.io
image.repositoryBety image namepecan/bety
image.tagBety image tagnull
image.pullPolicyBety image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
replicaCountNumber of Bety Pods to run1
nodeSelectorNode labels for pod assignment{} (evaluated as a template)
tolerationsTolerations for pod assignment[] (evaluated as a template)
affinityAffinity for pod assignment{} (evaluated as a template)
service.typeKubernetes Service typeClusterIP
service.portService HTTP port8000
betyUserUser value for bety.userbety
betyPasswordPassword value for bety.passwordbety
betyDatabaseName of the database for bety.databasebety

Ingress parameters

ParameterDescriptionDefault
ingress.enabledEnable ingress controller resourcefalse
ingress.hostDefault host for the ingress resource[] (evaluated as a template)
ingress.tlsTLS configuration for the hostnames to be coveredfalse
ingress.annotationsIngress annotations[] (evaluated as a template)

PostgreSQL parameters

ParameterDescriptionDefault
postgresq.auth.enablePostgresUserCreate the postgres user, this is the root account for postgresql.true
postgresq.auth.postgresPasswordPassword for postgres usersupersecret

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

helm install mt-release ncsa/betydb \
    --set betyPassword="xxxx" \
    --set secretKey="xxxx" \
    --set postgresql.auth.postgresqlPassword="xxxx"

The above command sets the bety password, secret, postgresql password to xxxx,xxxx, and xxxx respectively.

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

helm install --name my-release -f values.yaml .

Tip: You can use the default values.yaml

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

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

Deploy betydb with OpenTenant

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