1
0
Fork 0
This repository has been archived on 2022-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
odoo-pos-distribution/deployment/odoo-deployment.yaml

61 lines
1.3 KiB
YAML
Raw Normal View History

2019-07-22 20:33:00 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: odoo
name: odoo
namespace: pos
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/tobru/odoo-pos:latest-pos
2019-07-23 19:25:22 +00:00
imagePullPolicy: Always
2019-07-22 20:33:00 +00:00
name: web
ports:
2019-07-24 19:49:23 +00:00
- name: http
containerPort: 8069
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
periodSeconds: 30
timeoutSeconds: 5
2019-07-24 19:53:17 +00:00
successThreshold: 1
failureThreshold: 6
2019-07-24 19:49:23 +00:00
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
2019-07-24 19:53:17 +00:00
successThreshold: 1
failureThreshold: 6
2019-07-22 20:33:00 +00:00
volumeMounts:
- mountPath: /var/lib/odoo
name: odoo-data
hostname: web
restartPolicy: Always
volumes:
- name: odoo-data
persistentVolumeClaim:
claimName: odoo-data