console icon indicating copy to clipboard operation
console copied to clipboard

Trouble in Accessing minIO console through Virtual Service

Open ashujain2 opened this issue 3 years ago • 1 comments

Issue :-

I have deployed minio into EKS cluster now my aim is to create virtual-service and using prefix defined into VS ,User should be able login into minio-console UI.

Post creation of VS , I am getting Response from URL -http://localhost:3100/source-cserver/ with Status Code: 200 OK but webpage is not getting opened up .

Expected Behavior :-

User will click into URL http://localhost:3100/source-cserver/ and minio console UI should open.

Current Behavior

When we try to hit uri with prefix source-cserver then it goes to minio-console somehow (Infact, status code is 200 ok ) but page is blank with 3 blocks.

Webpage-Status

Desired Output

When Port is being forwarded through LENS / or kubectl port-forward pods/console-XXXXXXX -n=source-cserver I got the desired result , similar expectation I aim to achieve by creating virtual service

minio-console

Steps to Reproduce

VirtualService-

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  labels:
    app: minio-console
    app.kubernetes.io/component: server
    app.kubernetes.io/name: minio
  annotations:
    sidecar.istio.io/inject: "false"
  name: minio-console
  namespace: source-cserver
spec:
  gateways:
    - kubeflow/kubeflow-gateway
  hosts:
    - '*'
  http:
    - retries:
        attempts: 3
        perTryTimeout: 2s
      match:
        - uri:
            prefix: /source-cserver/
      route:
        - destination:
            host: source-cserver-console.source-cserver.svc.cluster.local
            port:
              number: 9090

ashujain2 avatar Jun 27 '22 13:06 ashujain2

https://github.com/minio/console/issues/1908

I also face on this issue reslove with add the ENV -> MINIO_BROWSER_REDIRECT_URL but also have some issue in subpath, the issue belw here object cant download, redirect with duplicate subpath (when user logout)

j13tw avatar Jul 11 '22 09:07 j13tw

I am having this same issue, can you post your Istio Virtual Service that is working @j13tw ?

asianman35 avatar Oct 27 '22 15:10 asianman35

@asianman35 Sorry that late to reply it, As I know the latest version is fixed the download error, and Fix Logout not used subpath issue (after my report it). A simple sample for latest version MinIO Console, If you needed to used the locked or old MinIO version, You can research error on browser web-console (F12) -> Network to saw Console API, and then hot to fix it with the Istio VS. FYI.

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: custom-minio-vs
  namespace: istio-system
spec:
  gateways: 
  - custom-minio-gw
  hosts:
  - "minio.anywhere.com"
  http:
  - name: "minio-console"
    match:
    - uri:
        prefix: "/minio-console/"
    - uri:
        exact: "/minio-console"
    rewrite:
      uri: "/"
    route:
    - destination:
        host: minio-console.minio.svc.cluster.local
        port:
          number: 9001

j13tw avatar Nov 06 '22 05:11 j13tw