Re: BUG #18555: pgadmin image keeps giving mime type error. Is the image k8s compatible . - Mailing list pgadmin-support

From iram khan
Subject Re: BUG #18555: pgadmin image keeps giving mime type error. Is the image k8s compatible .
Date
Msg-id CAJBeJHmJ_PMi0da0qpCkbY4cgP5ErNSCdJ6RtGyVpoR6EKzrBA@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18555: pgadmin image keeps giving mime type error. Is the image k8s compatible .  (Yogesh Mahajan <yogesh.mahajan@enterprisedb.com>)
List pgadmin-support
Hi yogesh ,
So I tried deploying pgadmin on azure cloud as well and on-prem kubernetes also. I am unable to access it through ingress. On -prem kubernetes , I am able to access through node-port and port forward service.
On azure-cloud , I am able to access though port-forward. I am unable to access through ingress on both platforms. 
Please help. I have attached the error I get for both . I am using dpage/pgadmin4:8.8 , havent made any changes to the image .
Refused to execute script from 'https://pgadmin.@domain.com/login?next=/browser/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
This is how my ingress looks like . 
kind: Ingress
metadata:
  name: pgadmin
  namespace: admin
  annotations:
spec:
  rules:
    - host: pgadmin.{domain}.com
      http:
        paths:
        - path: /
          pathType: Prefix
          backend:
            service:  
              name: pgadmin-service
              port:
                number: 80
  tls:
  - hosts:
    - pgadmin.{domain}.com

Thanks,
Iram Khan


On Fri, Aug 2, 2024 at 12:20 AM Yogesh Mahajan <yogesh.mahajan@enterprisedb.com> wrote:
Hi,

Can you please share a config yaml file for deployment? Also are you using any webserver e.g. nginx/httpd? If yes can you please share config for the same?
As per user, github issue #7412 was on Azure Webapps and it works fine on local vm.


Thanks,
Yogesh Mahajan
EnterpriseDB

pgadmin-support by date:

Previous
From: Akshay Joshi
Date:
Subject: pgAdmin 4 v8.11 Released
Next
From: Anil Sahoo
Date:
Subject: Re: pg admin crashing