-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Document baseUrl #716
Comments
* Support setting baseUrl in Argo UI * Issue #716 - Add ui-base-url installer argument
Implemented. Now argo installer support |
Has anyone successfully used this? I hope I am just doing something wrong. I have the |
Setting base url not working for me, too. Seems like this functionality was broken during migration to another repo and refactoring :( @alexmt please help. |
Yeah, just tried it and can confirm @eLco: Looks like it's not working (anymore?). |
Looks like the change only changes the references on the js side but not the path under which the http server provides the assets. |
Tried to reproduce issue with following steps :
Noticed that UI is working as expected only if @eLco , @discordianfish can you please try adding trailing slashes? |
Thanks to @andreyvelich for debugging it. Looks like there are two issues:
|
@alexmt Ah, thanks for clarification! I just didn't realize that I need to strip the request path. I've got it working behind an ingress with path |
@alexmt thank you for quick response and explanation, @andreyvelich fixed my issue with Ambassador and Argo UI in Kubeflow project with kubeflow/kubeflow#1865 |
Relates to PRs |
Any updates here? - name: **BASE_HREF**
value: /argo/ And in my nginx ingress file I have - rewrite target to - I am getting a blank page when I route to - |
@yuvraj9 I do not know if this is still relevant, but.. try |
Guys I've tried above with the following config apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: argo-ingress
namespace: argo
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/rewrite-target: "/"
spec:
rules:
- http:
paths:
- path: /argo
backend:
serviceName: argo-server
servicePort: 2746 In the deployment
Looking at the logs for the argo-server I can see that the href has been set correctly.
With the ingress path mapped to the correct backend
When I hit the url I get the following
Which shows a blank page. Any help much appreciated. |
I would assume that browser console, will show you error message about |
Thanks @AleksanderGondek for the response I had already tried the URL with the trailing |
If I may suggest a way of debuging - curl for |
Thanks. Yeah, the js file is redirecting to the html file, rather than retrieving the javascript.
|
I am not sure this will help, but my functioning deployment has a nginx-ingress rewrite defined differently: apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: argo-ingress
namespace: argo
spec:
rules:
- host: "host.name.xyz"
http:
paths:
- backend:
serviceName: argo-server
servicePort: 2746
path: /argo(/|$)(.*) |
Thanks @AleksanderGondek that worked perfectly. |
See #3080 |
I was stuck on this for a moment, the home page was returning HTTP 304 "Not modified" where it had been modified. A hard refresh fixed it. Something to be aware |
FEATURE REQUEST
I want to use a reverse proxy in front of argo and make it accessible on /argo. This currently leads to breaking all links since argo-ui expects to be ran on /.
I assume it's this setting: https://github.com/argoproj/argo/blob/3a4cd9c4ba46f586a3d26fbe017d4d3002e6b671/ui/src/tsconfig.app.json#L5
And it would be nice if I could override it in an env variable.
Alternatively the tag could be supported: http://www.verdantrefuge.com/writing/2013/angularjs-changing-app-path-base-element/
The text was updated successfully, but these errors were encountered: