Skip to content

fshahy/odoo-spawner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

odoo-spawner

If you want to deploy Odoo inside Kubernetes (minikube) and have multiple instances of it inside your cluster follow this instructions. I am using Odoo community edition chart provided by bitnami.

requirements

You need to install the following before we can start.

After installing the required software we need to create a new Kubernetes cluster:

$ minikube start --profile my-cluster

here I named it my-cluster but you can use your own. Then we start Kubernetes dashboard:

$ minikube dashboard -p my-cluster

the Odoo service defined in the bitnami chart is of type LoadBalancer, so we need to run the following command to be able to access the Odoo url:

$ minikube tunnel -p my-cluster

  1. clone the repository containging the Odoo chart:

$ git clone https://github.com/bitnami/charts.git

  1. change directory to where Odoo chart is loacted:

$ cd ./charts/bitnami/odoo

  1. this chart has some depencies like PostgreSQL, run this command to get them:

$ helm dependency update

  1. now we need to create the helm pachake for Odoo:

$ helm package .

depending on the current version of the chart it will create a file named like this:

odoo-21.2.8.tgz

Now if you want to run a new instance of Odoo inside your Kubernetes run the following command:

$ helm install fshahy ./odoo-21.2.8.tgz

note that I used fshahy as my installation name. Off course you can use any other name and have multiple instances of Odoo running inside your Kubernetes.

Releases

No releases published

Packages