# Odoo 18 — the application half of the Farrisilk lab replica. # # Image is pinned to the DATED build, never `18.0`/`latest`: Odoo auto-migrates # its database schema on start, so a floating tag turns a pod restart into an # unplanned upgrade of a database you may be auditing. # # This image already ships wkhtmltopdf 0.12.6.1 (patched Qt) at # /usr/local/bin/wkhtmltopdf, so PDF reports/ invoices render without a derived # image. Verified 2026-11-22 — see README. --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: odoo-data namespace: farrisilk spec: accessModes: [ReadWriteOnce] storageClassName: local-path resources: requests: storage: 10Gi --- # Empty by default. This is where the client's custom modules are copied in # (`kubectl cp ./module farrisilk/:/mnt/extra-addons/...`), which is # why it is a PVC and not an emptyDir: a module installed from here must survive # a pod restart, or the modules table and the addons path disagree and Odoo # refuses to start the affected modules. apiVersion: v1 kind: PersistentVolumeClaim metadata: name: odoo-extra-addons namespace: farrisilk spec: accessModes: [ReadWriteOnce] storageClassName: local-path resources: requests: storage: 5Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: odoo namespace: farrisilk spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: odoo template: metadata: labels: app: odoo app.kubernetes.io/part-of: farrisilk spec: # Envoy has to reach the backend on the same node it serves from, and the # filestore PVC is local-path (siriussec-only anyway). nodeSelector: kubernetes.io/hostname: siriussec tolerations: - key: dedicated operator: Exists effect: PreferNoSchedule initContainers: # Odoo has no env-var support for db_password, so the config file is # rendered from the ConfigMap template + the Secret on every pod start # into an emptyDir. Runs as root only to fix PVC ownership (the image # user is uid 100 / gid 101 and local-path hands out root-owned dirs). - name: render-config image: odoo:18.0-20261112 imagePullPolicy: IfNotPresent securityContext: runAsUser: 0 command: - /bin/sh - -ec - | mkdir -p /mnt/extra-addons /var/lib/odoo /etc/odoo-runtime chown -R 100:101 /var/lib/odoo /mnt/extra-addons chmod 0755 /mnt/extra-addons umask 077 cat > /etc/odoo-runtime/odoo.conf <