-
Notifications
You must be signed in to change notification settings - Fork 16
Issue while Self hosting in K8s #18
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
Comments
@g3Bg2 can you look into this? |
@hellodhana This will give you ip |
Here is my ingress yaml
Here is kubectl result
|
@hellodhana Is your subpath enabled? Can you also share your example value.yaml file Are you using helm charts? |
I am running this in AKS(Azure K8s Service). Not using helm charts. I have many applications running in this cluster and each have a dedicated path in ingress config(example /appl1(/|$)(.) and /appl2(/|$)(.) |
We have a dedicated helm chats for easy setup on k8s. https://github.com/hoppscotch/helm-charts You can try it. If you use subpath there is option to enable that in value.yaml file. There is both community(SHC) and enterprise(SHE) edition. |
I will try this out and comeback if I face issue. Thanks for timely help on this. |
I tried using helm charts but facing same issue. I am using sub path
When I access https://amer.ingress.com/hoppscotch2, I am getting 200 in browser but then page is not loaded as its trying load assets with below URL https://amer.ingress.com/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2 |
Using /hoppscotch as the base URL subpath is causing challenges, particularly with asset loading and redirects. Switch to a subdomain to simplify the configuration and ensure a smoother deployment (e.g., https://hoppscotch.amer.ingress.com). This approach aligns better with our setup and avoids the complexities of subpath routing. |
@g3Bg2 / @liyasthomas : I stood up another ingress controller in separate namespace. I can now host it using sub path(https://hoppscotch.amer.ingress.com/) option. But I am facing issues when i use hoppscotch to test internal APIs. Internal APIs are hosted in Azure APIM in one of the peered VNET. . I am not using any interceptor here. Are API calls from self hosted hoppscotch are routed externally? |
You are using a subdomain, not a subpath, which is why it works. Yes. Since the API calls originate from your browser, they're going through your local internet connection rather than through your Kubernetes cluster's network. You can enable proxy.. |
@g3Bg2 I am connected using VPN which is peered with APIM. I can access those APIs through CURL from my desktop. But not through self hosted hoppscotch. |
Try accessing the API endpoint directly in your browser address bar first. I think your browser (where Hoppscotch runs) may not be routing traffic through your VPN connection properly. |
@g3Bg2 : I dont have issues accessing the API endpoint in browser. Since this is not working I switched to Browser Extension Interceptor. I did add my self hosted URL(https://hoppscotch.amer.ingres.com) in extension. Now API is returning 200 response code. But response is empty and Graphql response provides below response in developer tool. I can also see in backend logs that API was called but i dont see response from backend either. { |
Uh oh!
There was an error while loading. Please reload this page.
I have deployed hoppscotch/hoppscotch:latest image in K8s with config map and secret store. Pod is running fine, but when I query base URL below, the page is blank.
https://amer.ingress.com/hoppscotch
Reason the page is blank is that its trying to load asset with without hoppscotch in URL. /hoppscotch is my prefix in ingress controller.
for example:
https://amer.ingress.com/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2
https://amer.ingress.com/assets/index-BLWbyyT9.js
Below is my config.
VITE_BASE_URL: "http://amer.ingress.com/hoppscotch"
VITE_SHORTCODE_BASE_URL: "http://amer.ingress.com/hoppscotch"
VITE_ADMIN_URL: "http://amer.ingress.com/hoppscotch/admin"
VITE_BACKEND_GQL_URL: "http://amer.ingress.com/hoppscotch/backend/graphql"
VITE_BACKEND_WS_URL: "wss://amer.ingress.com/hoppscotch/backend/graphql"
VITE_BACKEND_API_URL: "http://amer.ingress.com/hoppscotch/backend/v1"
Is there any config that I need to set so that it tries to load asset with right URL
https://amer.ingress.com/hoppscotch/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2
https://amer.ingress.com/hoppscotch/assets/index-BLWbyyT9.js
The text was updated successfully, but these errors were encountered: