-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodoo_v1_odoodeployment.yaml
More file actions
103 lines (103 loc) · 2.68 KB
/
Copy pathodoo_v1_odoodeployment.yaml
File metadata and controls
103 lines (103 loc) · 2.68 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: odoo.abugharbia.com/v1
kind: OdooDeployment
metadata:
name: odoodeployment-sample
spec:
name: odoo-sample
replicas: 1
image: mohanadabugharbia/odoo:18
# odooCommand replaces the image ENTRYPOINT; keep it to the odoo binary so
# the operator's odoo.conf is the only configuration source.
odooCommand: ["odoo"]
database:
# host: postgresql
hostFromSecret:
name: cluster-1-app
key: host
# port: 5432
portFromSecret:
name: cluster-1-app
key: port
# The database name is immutable once set.
name: odoo
# user: odoo
userFromSecret:
name: cluster-1-app
key: username
passwordFromSecret:
name: cluster-1-app
key: password
ssl: false
maxConn: 64
# IfNotExists (default) creates the database when it is missing and adopts
# it as "external" when it already exists; Never only adopts.
createPolicy: IfNotExists
# Delete drops the database with the OdooDeployment, but only when the
# operator created it (status.database.provisionedBy: operator).
deletionPolicy: Delete
maintenanceDatabase: postgres
modules:
- base
- web
upgrade:
# Modules passed to -u by the upgrade Job; empty rolls the new image without a Job.
modules:
- base
- web
# Upgrade whenever spec.image changes (default). For production set this to
# false and bump token to run upgrades on demand.
onImageChange: true
token: ""
jobs:
activeDeadlineSeconds: 3600
ttlSecondsAfterFinished: 86400
backoffLimit: 2
config:
debugMode: false
dataDir: /var/lib/odoo
withoutDemo: true
proxyMode: false
workers: 2
limitRequest: 8192
limitTimeCpu: 60
limitTimeReal: 120
limitMemorySoft: 2147483648
limitMemoryHard: 2684354560
maxCronThreads: 1
# false (default) renders list_db = False and dbfilter = ^odoo$ so the
# instance can only see its own database.
listDb: false
serverWideModules:
- base
- web
# Loaded with --load-language by Jobs that install modules.
loadLanguages:
- en_US
# extraAddonsPaths:
# - /mnt/extra-addons
# extraOptions:
# smtp_server: mail.example.com
env:
- name: OTEL_SDK_DISABLED
value: "true"
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "2"
memory: 2Gi
# probes:
# enabled: true
# podSecurityContext:
# runAsUser: 101
# runAsGroup: 101
# fsGroup: 101
# runAsNonRoot: true
odooFilestore:
storageClassName: standard
accessModes:
- ReadWriteOnce
size: 10Gi
# Retain (default) leaves the PVC behind; Delete garbage collects it.
deletionPolicy: Retain