Skip to content

Let K8S know if the app is ready or alive/dead

License

Notifications You must be signed in to change notification settings

trimentor/odoo-k8s-health-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odoo-k8s-health-check

Let K8S know if the app is ready or alive/dead

Synopsis

By default Odoo will log every web request.

When running in OpenShift/K8S we want to verify if the web pod is ready to accept traffic, or verify if it is alive or dead, without polluting the logs.

Installation

  1. Navigate to your custom Odoo addons directory: cd <odoo_custom_addons>
  2. Clone this project by running the following command: git clone https://github.com/trimentor/odoo-k8s-health-check.git k8s_health_check
  3. Activate the Odoo developer mode (Settings)
  4. Update Apps List (Apps)
  5. Remove "Apps" from the search field
  6. Search and Install the "k8s_health_check" module

OpenShift

In the Deployment Config or your web app, configure your Readiness Probe with:

  • Type: HTTP GET
  • Path: /k8s_health_check/status
  • Port: 8069
  • Initial Delay: 10 seconds
  • Timeout: 5 seconds

To check if the web app is alive/dead we can execute a command inside the container.

About

Let K8S know if the app is ready or alive/dead

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages