Kubernetes Frappe - Assets Not found 404

Sir @revant_one

While building docker images,

assets/js/frappe-web.min.js
assets/css/erpnext-web.css

'These files gets created.

But While running site in kuberenetes,

Blank login Page with below errors,

assets/js/frappe-web.min.js:1 GET ERR_ABORTED 404
assets/css/erpnext-web.css:1 net::ERR_ABORTED 404
assets/js/frappe-web.min.js net::ERR_ABORTED 404
Uncaught TypeError: Cannot read properties of undefined (reading ‘Dialog’)
at bootstrap-4.js:44
at bootstrap-4.js:58
shopping_cart.js:5 Uncaught TypeError: daffy.provide is not a function
at shopping_cart.js:5
at shopping_cart.js:186

Note:

Inside container : erpnext-assets
frappe-web.min.js file is missing in assets/js

For custom app, this is working on kubernetes: https://github.com/revant/erpnext_feature_board

It has a workflow to build images and deploy/migrate the updated images on cluster.

Make sure you erpnext pod has 2 containers 1 for erpnext-assets and 1 for erpnext-python,

during init, the erpnext assets container copies the assets from itself on to assets-volume shared between the pod containers.

also make sure you’re using the latest helm chart, the latest nginx images publish webservice on port 8080 and run as non-root.

Make sure you erpnext pod has 2 containers 1 for erpnext-assets and 1 for erpnext-python
–> Yes It has 2 pods, All pods are running without any errors

Testing with latest Helm Chart:

I installed latest helm chart and tried to create a site,
All pods are running without any errors, site creation successful

Now its showing - 503 Service Temporarily Unavailable / 502 Bad Gateway

What should be the service port in Ingress Config?

set it to 8080

If set to 8080 it shows 502 Bad Gateway

Do you have any idea why the files are missing ?
While building images all the JS and minified Assets gets created, But while running it shows missing !

it may be because of volume permissions?

make sure initContainer can copy assets from nginx container into the assets-dir volume.

I’m not facing any such error