mage-ai / helm-charts

Apache License 2.0
11 stars 25 forks source link

Duplicated pvc #56

Open younsl opened 5 months ago

younsl commented 5 months ago

Problem

Due to the current helm template structure, the mageai-scheduler pod and the mageai-webserver pod are configured to refer to the same PVC.

---
title: mageai PVC architecture
---
flowchart LR
  w("mageai-webserver")
  s("mageai-scheduler")
  pvc("mageai-pvc")
  pv("mageai-pv")
  w --"/home/src"--> pvc
  s  --"/home/src"--> pvc
  pvc --> pv
# pod spec for mageai-webserver and mageai-scheduler
spec:
  volumes:
  - name: mage-fs
    persistentVolumeClaim:
      claimName: mageai-pvc

Need to refactor chart template for persistentVolumeClaim resource and volume spec

sriniarul commented 1 month ago

As per my understanding of the architecture, it should be refereeing to the same PVC. If we place different volume for webservice and scheduler there wont be any sync between changes in the webui to the scheduler.