-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Does ST2 Web Ingress support not only "/"? #145
Comments
The Helm chart just provides the templating around the K8s Ingress (https://kubernetes.io/docs/concepts/services-networking/ingress/): As I understand the behavior and rewrite mechanisms might look different depending on K8s Ingress controller you configure (https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/). So worth debugging further down the path. Another point to mention, - after the Ingress you hit the nginx st2web. So that's another place to look at. Here is how the config looks like: https://github.com/StackStorm/st2/blob/master/conf/nginx/st2.conf If you'll find the solution for your problem, - please don't forget to share it in the issue. |
Thanks @armab .
But for the original requirement we still need to dig into the code. The web UI access api/stream/auth directly with https://[api/stream/auth] without considering the context path. |
Hi @wantdrink The solution is to configure st2web. In #165 this chart was extended to give you the possibility to set the configuration of st2web. For your use-case the variables could be e.g.: (...)
st2web:
(...)
config: |
'use strict';
/* global angular */
angular.module('main')
.constant('st2Config', {
hosts: [
{
name: 'test',
url: 'https://stackstorm.dev.com/st1/api',
auth: 'https://stackstorm.dev.com/st1/auth',
stream: 'https://stackstorm.dev.com/st1/stream',
}
]
}); |
@wantdrink does #145 (comment) resolve your issues? |
@wantdrink I'm going to close this. Please reopen if you still have a question about this. |
Thanks a lot @moonrail & @cognifloyd , that really helps! |
@moonrail, Furthermore in the latest 0.8.0 what we have to do is to change it as:
and in the ingress still needs to configure rewrite below? Thanks a lot.
|
Hi there,
We are testing installing 2 stackstorm (1 active and the other for backup) in the same k8s cluster. The helm release name is 'st1' and 'st2'
.
I enabled the ingress and try to use path rewrite and hope to access them with /st1 /st2.
"stackstorm.dev.com" is our dev F5 VIP with DNS resolvable.
Finally I found that access https://stackstorm.dev.com/st1/ (the tail '/' should not be omitted) and try to login.I can see the home page, but login will be redirected to:
Request URL: https://stackstorm.dev.com/auth/tokens
context 'st1' was lost.
Do we support the URL rewrite in st2-web like grafana? If not we can only access the ingress from that VIP with "/" for only one of those instances.
The text was updated successfully, but these errors were encountered: