-
Notifications
You must be signed in to change notification settings - Fork 278
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
Minio console cannot be exposed trough k8s ingress and NGINX gateway #1908
Comments
I am experiencing the same problem via docker-compose and putting minio behind nginx. The only solution so far is to expose minio at |
Issue reproduced with the Helm chart and an Ingress using |
I was able to successfully serve the UI on a subpath (k8s ingress) using:
(note the second and setting the ingress with:
|
You should only need one environment variable here @dvaldivia why do we need two? |
Update: With image However, to access the UI, the full login path ( |
I removed The redirect you are seeing @gcalmettes sounds to me like a bug on our end, I'll investigate |
Any update on this issue? |
@dvaldivia If that helps, below is a local
|
I also have the same issue, Are there any updates? |
#1908 (comment) I also confirm the above using K8s ingress, NGINX gateway, and a subpath (/minio/). E.g. |
@dvaldivia - any updates on this issue? Is the workaround mentioned above a valid interim solution? |
Hello, -subpath/login is not working if not "explicitely entered" to access the web ui console (it redirects to /subpath/subpath/login). Any updates on the issues and this thread? Thanks |
Not a best practice |
Another confirmation here, running into this issue. I have also not been able to work around the issue with some of the latest versions using nginx reverse proxy in front when attempting to expose minio console on a subpath. Any known workarounds with the latest version? |
I have the same issue. I run MinIO on a on premise Kubernetes cluster with Traefik as reverse proxy. I have followed this documentation to install MinIO and try to set up Traefik as reverse proxy for the Operator Console and the Object Storage Console. I was unable to set up the Operator Console in a sub path like https://acme.org/minio. Even though the env variables I give here the traefik configuration that “work” for me. apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: minio-console-https
namespace: default
spec:
entryPoints:
- https
routes:
## For Minio Operator Console
- kind: Rule
match: Host(`minio.acme.org`)
middlewares:
- name: minio-secure-mid
namespace: default
services:
- kind: Service
name: console
port: 9090
namespace: minio-operator
## For Minio Object Store Console
- kind: Rule
match: Host(`object-storage.acme.org`) && PathPrefix(`/tenant`)
middlewares:
- name: minio-object-storage-tenant-mid
namespace: default
services:
- kind: Service
name: tenant-console
port: 9090
namespace: default
tls:
certResolver: default
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: minio-object-storage-tenant-mid
namespace: default
spec:
stripPrefix:
prefixes:
- /tenant Dont forget to enabled the |
Thank you so much for this, I spent half a day trying to solve this |
I am using the latest minio release (RELEASE.2022-04-26T01-20-24Z) that introduces MINIO_BROWSER_REDIRECT_URL env variable (minio/minio#14761).
Since we deploy the minio console on the k8s cluster behind the ingress and NGINX reverse proxy I have to rewrite the NGINX config in the following way:
When I try to get minio console I see the following:
How to reproduce:
Run MinIO Like
start nginx with the following config:
Visit http://localhost:8000/console
The text was updated successfully, but these errors were encountered: