The dbos-secrets chart

Description

This chart creates the secrets to store sensible data into Secret objects. It contains:

  • the ‘pullers’ to fetch the docker images
  • the passwords to connect to every Optimization Server application component.

WARNING: for production usage, all the default passwords should be overridden!

The chart supports an “auto” keyword to let Helm generate a random 32 characters length password.

Example: values.yaml

keycloak:
  adminPassword: auto 

Configuration

Pullers

Configure your image puller:

pullers:
  - name: dbos-registry.decisionbrain.cloud-secret # do not change this.
    dockerconfigjson: XXXXX
  - name: cplex-registry.decisionbrain.cloud-secret # if you have purchased a Cplex license
    dockerconfigjson: XXXXX

Where ‘XXXXX’ is the token you have been given to access the DecisionBrain’s docker repositories.

Keycloak

Secret name: keycloak

Parameter Secret key Description Default value
keycloak.enabled - True if Keycloak is installed with dbos-infra true
keycloak.adminPassword keycloak-admin-password The password of the admin user admin

MongoDB

Secret name: mongo

Parameter Secret key Description Default value
mongo.enabled - True if MongoDB is installed with dbos-infra true
mongo.rootUsername mongo-initdb-root-username The username of the root user admin
mongo.rootPassword mongo-initdb-root-password The password of the root user admin
mongo.databases.dbos.database mongodb-dbos-database The name of the dbos database optimserver-master-db
mongo.databases.dbos.username mongodb-dbos-username The username to connect to the dbos database optimserver
mongo.databases.dbos.password mongodb-dbos-password The password to connect to the dbos database optimserver

The chart can also create other database connection parameters. the dbos database is defined in the values.yaml with:

mongo:
  databases:
    dbos:
      database: optimserver-master-db
      username: optimserver        
      password: optimserver

But 2 different databases could be created with:

mongo:
  databases:
    dbos:
      database: optimserver-master-db
      username: optimserver
      password: optimserver
    myotherdb:
      database: myotherdbname
      username: myotherdbusername      
      password: myotherdbpassword

the dbos-infra chart references The ‘mongo’ secret when it installs MongoDB and creates the databases.

PostGres

Secret name: postgres

Parameter Secret key Description Default value
postgres.enabled - True if PostGres is installed with dbos-infra true
postgres.rootPassword postgres-admin-password The password of the admin user admin
postgres.databases.keycloak.database postgres-keycloak-database The name of the keycloak database keycloak
postgres.databases.keycloak.username postgres-keycloak-username The username to connect to the keycloak database keycloak
postgres.databases.keycloak.password postgres-keycloak-password The password to connect to the keycloak database keycloak

The chart can also create other database connection parameters. the keycloak database is defined in the values.yaml with:

postgres:
  databases:
    keycloak:
      database: keycloak
      username: keycloak
      password: keycloak

But 2 different databases could be created with:

postgres:
  databases:
    keycloak:
      database: keycloak
      username: keycloak
      password: keycloak
    myotherdb:
      database: myotherdbname
      username: myotherdbusername      
      password: myotherdbpassword

the dbos-infra chart references The ‘postgres’ secret when it installs Postgres and creates the databases.

Deployment

First installation

Use the command:

helm install dbos-secrets ./dbos-secrets -f values.yaml

Or

helm install dbos-secrets decisionbrain/dbos-secrets --version 3.3.0 -f values.yaml

If you added the DecisionBrain Helm registry

Update

WARNING: you must NOT update this chart using auto generated passwords. This would erase the existing passwords and break the installation environment.

Use the command:

helm upgrade dbos-secrets ./dbos-secrets -f values.yaml

Or

helm upgrade dbos-secrets decisionbrain/dbos-secrets --version 3.3.0 -f values.yaml

If you added the DecisionBrain Helm registry