Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble in Accessing minIO console through Virtual Service #2149

Closed
ashujain2 opened this issue Jun 27, 2022 · 3 comments · Fixed by #2818
Closed

Trouble in Accessing minIO console through Virtual Service #2149

ashujain2 opened this issue Jun 27, 2022 · 3 comments · Fixed by #2818
Assignees

Comments

@ashujain2
Copy link

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
@j13tw
Copy link

j13tw commented Jul 11, 2022

#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)

@asianman35
Copy link

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

@j13tw
Copy link

j13tw commented Nov 6, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants