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

Unable to ingress to Operator Console via a SubPath #1607

Closed
rkesters opened this issue May 17, 2023 · 3 comments
Closed

Unable to ingress to Operator Console via a SubPath #1607

rkesters opened this issue May 17, 2023 · 3 comments
Assignees

Comments

@rkesters
Copy link

rkesters commented May 17, 2023

Expected Behavior

Using k3s and networking.k8s.io/v1 Ingress , I create an http rule for the operator console that maps /minio-console/ to the "console" services in the minio-operator namespace. In the helm chart values that installs the operator , I include OPERATOR_SUBPATH set to /minio-operator/ . I can the access the the operator console via http://localhost:3000/minio-console .

Current Behavior

I get 2 console errors when accessing http://localhost:3000/minio-console.

  1. Uncaught SyntaxError: Unexpected token '<' (at main.567ad562.js1:1
  2. Manifest: Line: 1, column: 1 , syntax error.

Possible Solution

There does appear to be code that reads the OPERATOR_SUBPATH env, so I'm not sure.

Steps to Reproduce (for bugs)

  1. Setup a k3s cluster (assume localhost access to cluster ingress is via http://localhost:3000)
  2. kubeclt apply -f example.yaml (see gist linked below)
  3. use browser to access http://localhost:3000/minio-console

Context

using subpaths to expose on cluster UI is a standard practice, port forwarding requires access the console from a different url.

I don't believe I can use MINIO_BROWSER_REDIRECT_URL, as that appears to be used to keycloak integration (which I'll setup after getting this working)

Regression

not sure

Your Environment

  • Version used (minio-operator): 5.0.4
  • Environment name and version (e.g. kubernetes v1.17.2): v1.25.5+k3s1
  • Server type and version: Vbox
  • Operating System and version (uname -a): Linux local-moc 5.15.0-57-generic # 63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Link to your deployment file: https://gist.github.com/rkesters/df3312e0fdc1ec262f3bb82d3dd3a39f
@cniackz
Copy link
Contributor

cniackz commented May 25, 2023

This is very similar to issue: minio/console#2045
And there was a fix in console for it: minio/console#2818
But since we separated the Operator UI and the console UI, I wonder if similar fix should be applied

@cniackz
Copy link
Contributor

cniackz commented May 26, 2023

I think the fix is: #1616

@cniackz
Copy link
Contributor

cniackz commented Aug 18, 2023

Fixed in: #1616

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

No branches or pull requests

2 participants