From 7411263e9d13e1f9d428a97d8b807860f425451e Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 12 Jul 2022 21:12:58 +0200 Subject: [PATCH] install odoo - the app --- odoo/deployment-odoo.yaml | 59 +++++++++++++++++++++++++++++++++++++++ odoo/pvc-odoo.yaml | 13 +++++++++ odoo/service-odoo.yaml | 13 +++++++++ 3 files changed, 85 insertions(+) create mode 100644 odoo/deployment-odoo.yaml create mode 100644 odoo/pvc-odoo.yaml create mode 100644 odoo/service-odoo.yaml diff --git a/odoo/deployment-odoo.yaml b/odoo/deployment-odoo.yaml new file mode 100644 index 0000000..3d579aa --- /dev/null +++ b/odoo/deployment-odoo.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: odoo + name: odoo +spec: + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + app: odoo + template: + metadata: + labels: + app: odoo + spec: + containers: + - env: + - name: HOST + value: db + - name: PASSWORD + value: odoo + - name: USER + value: odoo + image: docker.io/library/odoo:15 + imagePullPolicy: Always + name: web + ports: + - name: http + containerPort: 8069 + livenessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 300 + periodSeconds: 30 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 6 + readinessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 6 + volumeMounts: + - mountPath: /var/lib/odoo + name: odoo-data + hostname: web + restartPolicy: Always + volumes: + - name: odoo-data + persistentVolumeClaim: + claimName: odoo-data diff --git a/odoo/pvc-odoo.yaml b/odoo/pvc-odoo.yaml new file mode 100644 index 0000000..15240e1 --- /dev/null +++ b/odoo/pvc-odoo.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + app: odoo + name: odoo-data +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 500Mi + storageClassName: local-path diff --git a/odoo/service-odoo.yaml b/odoo/service-odoo.yaml new file mode 100644 index 0000000..a8764ef --- /dev/null +++ b/odoo/service-odoo.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: odoo + name: odoo +spec: + ports: + - name: http + port: 80 + targetPort: 8069 + selector: + app: odoo