Skip to content

Mint System Odoo ​

This Helm chart deploys Odoo with PostgreSQL.

Secrets ​

Setup a odoo-creds secret with GitHub credentials to download private repos.

bash
kubectl create secret generic odoo-creds \
    --from-literal=GITHUB_USERNAME="$github_username" \
    --from-literal=GITHUB_PAT="$github_pat" \
    --from-literal=GITLAB_USERNAME="$gitlab_username" \
    --from-literal=GITLAB_PAT="$gitlab_pat" \
    -n $namespace

The K8up backup requires a s3-credentials and a backup-repo secret. Here is an example for Exoscale SOS:

bash
kubectl create secret generic s3-credentials \
    --from-literal=username="$exoscale_iam_key" \
    --from-literal=password="$exoscale_iam_secret" \
    -n $namespace

Jobs ​

There is suspended <release>-staging-reset job that copies the main database and volume to the staging enviroment. Then the job neutralizes the Odoo database. To run the job:

bash
kubectl create job --from=cronjob/<release>-staging-reset <release>-staging-reset-run

Parameters ​

Ingress parameters ​

NameDescriptionValue
ingress.enabledEnable or disable the ingresstrue
ingress.classNameThe class name for the ingress""
ingress.clusterIssuerRefThe cluster issuer reference for the ingressnil
ingress.hostThe host for the ingress""
ingress.customDomainThe custom domain for the ingress""
ingress.staging.customDomainThe custom domain for the staging ingress""

vshnPostgres parameters ​

NameDescriptionValue
vshnPostgres.enabledEnable or disable vshnPostgresfalse
vshnPostgres.secretRefThe secret reference for vshnPostgresodoo-postgresql
vshnPostgres.client.enabledEnable or disable the vshnPostgres clientfalse

Postgres parameters ​

NameDescriptionValue
postgres.enabledEnable or disable Postgresfalse
postgres.dbThe database name for Postgresodoo
postgres.userThe username for Postgresodoo
postgres.secretRefThe secret reference for Postgresodoo-postgres
postgres.storageClassNameSet the storage classstandard

CloudNativePG parameters ​

NameDescriptionValue
cnpg.enabledEnable or disable CloudNativePGtrue
cnpg.nameOverrideOverride the name of the CloudNativePG cluster""
cnpg.instancesNumber of instances (1 for single, 2+ for high availability)1
cnpg.storage.sizePersistent volume size for each instance8Gi
cnpg.databaseName of the CloudNativePG database to createodoo
cnpg.ownerName of the database userapp

Odoo parameters ​

NameDescriptionValue
enabledEnable or disable Odootrue
imageThe image for Odoo""
replicasNumber of Odoo replicas1
imagePullPolicyPull policy for Odoo imageAlways
proxyModeEnable or disable proxy mode for Odootrue
downloadOdooEnterpriseEnable or disable downloading Odoo Enterprisefalse
addonsGitReposList of addon Git repositories for Odoo["https://github.com/Mint-System/Odoo-Apps-Server-Tools.git","https://github.com/OCA/Server-Tools.git"]
pythonInstallList of python packages to insall[]
databaseThe database for odooodoo
init.langThe initial language for Odoode_CH
init.loginThe initial username for Odoo admin account""
init.passwordThe initial passwod for Odoo admin account""
listDBEnable or disable listing databases for Odoofalse
workersDefine the amount of Odoo workers to spawn5
secretRefThe secret reference for Odooodoo-creds
storageClassNameSet the storage class""

Resources requests and limits ​

NameDescriptionValue
resources.requests.memoryMemory request for the container1Gi
resources.requests.cpuCPU request for the container250m
resources.limits.memoryMemory limit for the container2Gi

K8up parameters ​

NameDescriptionValue
k8up.enabledEnable or disable K8upfalse
k8up.endpointS3 endpoint""
k8up.bucketS3 bucket name""

Staging parameters ​

NameDescriptionValue
staging.enabledEnable or disable staging deploymentfalse
staging.imageThe image for Odoo staging""
staging.nameName of the staging environment (used in staging ingress)staging

Upgrade parameters ​

NameDescriptionValue
upgrade.enabledEnable or disable the upgrade jobfalse
upgrade.imageThe image for the Odoo upgrade jobmintsystem/odoo-upgrade:16
upgrade.databaseThe target database for the upgradeupgrade
upgrade.targetVersionThe target Odoo version for the upgrade""
upgrade.modeThe upgrade mode (test or production)test