Mint System Odoo
This Helm chart deploys Odoo with PostgreSQL.
Secrets
Setup a odoo-creds secret with GitHub credentials to download private repos.
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:
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:
kubectl create job --from=cronjob/<release>-staging-reset <release>-staging-reset-run
Parameters
Ingress parameters
| Name |
Description |
Value |
ingress.enabled |
Enable or disable the ingress |
true |
ingress.className |
The class name for the ingress |
"" |
ingress.clusterIssuerRef |
The cluster issuer reference for the ingress |
nil |
ingress.host |
The host for the ingress |
"" |
ingress.customDomain |
The custom domain for the ingress |
"" |
ingress.staging.customDomain |
The custom domain for the staging ingress |
"" |
vshnPostgres parameters
| Name |
Description |
Value |
vshnPostgres.enabled |
Enable or disable vshnPostgres |
false |
vshnPostgres.secretRef |
The secret reference for vshnPostgres |
odoo-postgresql |
vshnPostgres.client.enabled |
Enable or disable the vshnPostgres client |
false |
Postgres parameters
| Name |
Description |
Value |
postgres.enabled |
Enable or disable Postgres |
false |
postgres.db |
The database name for Postgres |
odoo |
postgres.user |
The username for Postgres |
odoo |
postgres.secretRef |
The secret reference for Postgres |
odoo-postgres |
postgres.storageClassName |
Set the storage class |
standard |
CloudNativePG parameters
| Name |
Description |
Value |
cnpg.enabled |
Enable or disable CloudNativePG |
true |
cnpg.nameOverride |
Override the name of the CloudNativePG cluster |
"" |
cnpg.instances |
Number of instances (1 for single, 2+ for high availability) |
1 |
cnpg.storage.size |
Persistent volume size for each instance |
8Gi |
cnpg.database |
Name of the CloudNativePG database to create |
odoo |
cnpg.owner |
Name of the database user |
app |
Odoo parameters
| Name |
Description |
Value |
enabled |
Enable or disable Odoo |
true |
image |
The image for Odoo |
"" |
replicas |
Number of Odoo replicas |
1 |
imagePullPolicy |
Pull policy for Odoo image |
Always |
proxyMode |
Enable or disable proxy mode for Odoo |
true |
downloadOdooEnterprise |
Enable or disable downloading Odoo Enterprise |
false |
addonsGitRepos |
List of addon Git repositories for Odoo |
["https://github.com/Mint-System/Odoo-Apps-Server-Tools.git","https://github.com/OCA/Server-Tools.git"] |
pythonInstall |
List of python packages to insall |
[] |
database |
The database for odoo |
odoo |
init.lang |
The initial language for Odoo |
de_CH |
init.login |
The initial username for Odoo admin account |
"" |
init.password |
The initial passwod for Odoo admin account |
"" |
listDB |
Enable or disable listing databases for Odoo |
false |
workers |
Define the amount of Odoo workers to spawn |
5 |
secretRef |
The secret reference for Odoo |
odoo-creds |
storageClassName |
Set the storage class |
"" |
Resources requests and limits
| Name |
Description |
Value |
resources.requests.memory |
Memory request for the container |
1Gi |
resources.requests.cpu |
CPU request for the container |
250m |
resources.limits.memory |
Memory limit for the container |
2Gi |
K8up parameters
| Name |
Description |
Value |
k8up.enabled |
Enable or disable K8up |
false |
k8up.endpoint |
S3 endpoint |
"" |
k8up.bucket |
S3 bucket name |
"" |
Staging parameters
| Name |
Description |
Value |
staging.enabled |
Enable or disable staging deployment |
false |
staging.image |
The image for Odoo staging |
"" |
staging.name |
Name of the staging environment (used in staging ingress) |
staging |
Upgrade parameters
| Name |
Description |
Value |
upgrade.enabled |
Enable or disable the upgrade job |
false |
upgrade.image |
The image for the Odoo upgrade job |
mintsystem/odoo-upgrade:16 |
upgrade.targetDatabase |
The target database for the upgrade |
upgrade |
upgrade.targetVersion |
The target Odoo version for the upgrade |
"" |
upgrade.mode |
The upgrade mode (test or production) |
test |