diff --git a/odoo-deploy.yaml b/odoo-deploy.yaml index 73f2e1f..3af863b 100644 --- a/odoo-deploy.yaml +++ b/odoo-deploy.yaml @@ -38,7 +38,8 @@ spec: mountPath: /bitnami/odoo volumes: - name: odoo-data - emptyDir: {} + persistentVolumeClaim: + claimName: odoo-pvc --- apiVersion: v1 kind: Service diff --git a/odoo-pvc.yml b/odoo-pvc.yml new file mode 100644 index 0000000..d482aa2 --- /dev/null +++ b/odoo-pvc.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: odoo-pvc + namespace: odoo +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi \ No newline at end of file