Is there a place for the assets folder when deploying via the helm chart or does it require a separate mount?
Check the deployment with 2 container. The pod with 2 container.
It mounts assets directory in both containers and then the eprnext-assets container copies static files from itself to the shared mounted volume of erpnext-python container
Assets are copied in erpnext-assets container here
Symlinked in erpnext-python
The deployment that does the mounts like this :
apiVersion: apps/v1
kind: Deployment
...
metadata:
name: ...-erpnext
spec:
template:
...
spec:
containers:
- name: erpnext-assets
...
volumeMounts:
- mountPath: /assets
name: assets-cache
- mountPath: /var/www/html/sites
name: sites-dir
- name: erpnext-python
...
volumeMounts:
- mountPath: /home/frappe/frappe-bench/sites/assets
name: assets-cache
- mountPath: /home/frappe/frappe-bench/sites
name: sites-dir
- mountPath: /home/frappe/frappe-bench/logs
name: logs
volumes:
- emptyDir: {}
name: assets-cache
- name: sites-dir
persistentVolumeClaim:
claimName: erpnext
- name: logs
persistentVolumeClaim:
claimName: erpnext-logs