0

I have configured pgadmin to run on kubernetes. My issue is when I use ingress i get the following: pgadmin web url When I do inspect i get:Mime error

Note the issue is not related to: Pgadmin is not loading

as its gets defined in init.py file init.py

So what is confusing is that if I do kubectl port forward (bypass ingress) it works fine localhost:8282

Jacques
  • 1
  • 3
  • What version of pgadmin are you using? – blacktide Jun 03 '22 at 14:07
  • Also, your `init.py` screenshot is the same as the "Mime error" one. Did you mean to include a different one? – blacktide Jun 03 '22 at 14:07
  • Sorry think i added the wrong info in init.py. # Explicitly set the mime-types so that a corrupted windows registry will not # affect pgAdmin 4 to be load properly. This will avoid the issues that may # occur due to security fix of X_CONTENT_TYPE_OPTIONS = "nosniff". import mimetypes mimetypes.add_type('application/javascript', '.js') mimetypes.add_type('text/css', '.css') This is what the script says. I have tried pgadmin4-6.8 and pgadmin4-6.9. – Jacques Jun 05 '22 at 12:32

1 Answers1

0

So after some troubleshooting I found.

Took the image back to http. Made the ingress https and add annotation to call backend http.

Jacques
  • 1
  • 3