fshahy / odoo-spawner

run multiple Odoo instances inside Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

run multiple Odoo instances inside Kubernetes