install odoo - the app
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2022-07-12 21:12:58 +02:00
parent d9a2a1547f
commit 7411263e9d
3 changed files with 85 additions and 0 deletions

59
odoo/deployment-odoo.yaml Normal file
View File

@ -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

13
odoo/pvc-odoo.yaml Normal file
View File

@ -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

13
odoo/service-odoo.yaml Normal file
View File

@ -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