API_BASE_URL Setting for Apiserver behind a K8s service. #988
Replies: 1 comment 1 reply
-
Updating this with details I posted to the chart repo issue that was raised: ==================== Right, so after staring at this for many hours, I think I understand it and have managed to resolve it within our environment. I'm afraid I have to disagree with your statement @davidkarlsen
Because the default setting for the helm chart, regarding Ingress, is that is is disabled, as per this setting and this "if" statement. Therefore installing with the command in the README, won't work out the box:
Instead the By using the same ingress for both frontend and apiserver, I presume (as we don't want that setup, which I'll explain in a minute, so I haven't tested it) the API_BASE_URL being blank works fine because it does a POST to the API path at itself. For us this we will be using a slightly different setup as we do not wish to expose any tool interfaces to the Internet unless absolutely required. So we set API_BASE_URL to be
And then we use port-forwarding, running these two commands in parallel:
We can then browse to 127.0.0.1:8080 to access the UI and it communicates with the apiserver on tcp/8081 via our tunnel. |
Beta Was this translation helpful? Give feedback.
-
My question is what should I be setting the API_BASE_URL to, given that I am deploying the Community maintained helm chart and the apiserver and frontend are packaged as separate K8s deployments and services within this.
We are trying to login in via the UI and we receive HTTP 405 Method Not Allowed.
We are using this chart and can see from Dependency Track documentation and here https://github.com/DependencyTrack/frontend#deployment that something might need to be provided.
Given that the chart deploys frontend and backend as separate deployments and services, what should we be using as the API_BASE_URL in the frontend so that it can talk to the backend and we don't receive the HTTP error.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions