diff --git a/stable/odoo/Chart.yaml b/stable/odoo/Chart.yaml index c42e9d4360..a3b1bf7de2 100644 --- a/stable/odoo/Chart.yaml +++ b/stable/odoo/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: odoo -version: 11.0.1 +version: 11.1.0 appVersion: 12.0.20190815 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/stable/odoo/README.md b/stable/odoo/README.md index 451b90cb3b..4af501da4c 100644 --- a/stable/odoo/README.md +++ b/stable/odoo/README.md @@ -111,6 +111,7 @@ The following table lists the configurable parameters of the Odoo chart and thei | `readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `readinessProbe.failureThreshold` | Minimum consecutive failures to be considered failed | 6 | | `readinessProbe.successThreshold` | Minimum consecutive successes to be considered successful | 1 | +| `affinity` | Map of node/pod affinities | `{}` | The above parameters map to the env variables defined in [bitnami/odoo](http://github.com/bitnami/bitnami-docker-odoo). For more information please refer to the [bitnami/odoo](http://github.com/bitnami/bitnami-docker-odoo) image documentation. diff --git a/stable/odoo/templates/deployment.yaml b/stable/odoo/templates/deployment.yaml index 0d3e1f3db8..c434e60fe1 100644 --- a/stable/odoo/templates/deployment.yaml +++ b/stable/odoo/templates/deployment.yaml @@ -104,3 +104,7 @@ spec: {{- else }} emptyDir: {} {{- end }} + {{- with .Values.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} diff --git a/stable/odoo/values.yaml b/stable/odoo/values.yaml index 13291d2b17..ada62558b6 100644 --- a/stable/odoo/values.yaml +++ b/stable/odoo/values.yaml @@ -219,3 +219,8 @@ readinessProbe: timeoutSeconds: 5 failureThreshold: 6 successThreshold: 1 + +## Affinity for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +## +affinity: {}