Not able to access Administration console page, deployed keycloak with Kubernetes and accessing with path base routing using istio virtual service

Hi, I have deployed keycloak using kubernetes, I am able to access keycloak welcome page, but when clicking on Administration console page it gives cannot GET /admin,

below are the env variables that I have added.

“KEYCLOAK_HTTP_CONTEXT_PATH”: {
“type”:“text”,
“value”:“/keycloak”
},
“KEYCLOAK_FRONTEND_URL”:{
“type”:“text”,
“value”:“https://stg-domain.coml/keycloak/auth/
},
“KEYCLOAK_ADMIN_CONTEXT”:{
“type”:“text”,
“value”:“/keycloak/admin”
},

I am accessing keycloak on https://stg-domain.com/keycloak/

Below is my virtual service configuration

  • match:
    • uri:
      prefix: /keycloak/
      rewrite:
      uri: /
      route:
    • destination:
      host: keycloak-keycloak-lb-0
      port:
      number: 8080

I am using image: “Quay”. Please let me know if any changes required on deployment side or need to upgrade the image.

Earlier I used image image: “quay.io/keycloak/keycloak:8.0.2” with this image Administration console was accessible.