forked from jeffery9/kubernetes-odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
odoo.yaml
executable file
·45 lines (45 loc) · 1009 Bytes
/
odoo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: odoo-server
spec:
replicas: 1
template:
metadata:
labels:
app: odoo-server
spec:
containers:
- name: odoo-server
image: odoo
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: DB_PORT_5432_TCP_ADDR
value: "localhost"
- name: DB_PORT_5432_TCP_PORT
value: "5432"
- name: DB_ENV_POSTGRES_USER
value: "odoo"
- name: DB_ENV_POSTGRES_PASSWORD
value: "1234"
ports:
- containerPort: 8069
---
apiVersion: v1
kind: Service
metadata:
name: odoo-server
labels:
app: odoo-server
spec:
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
# type: LoadBalancer
ports:
# the port that this service should serve on
- port: 8069
selector:
app: odoo-server