Coder_app not directing to url correctly

I have coder (and coder workspaces) deployed to a k8s cluster. In the workspace pod I have a talos container that deploys a local instance of k8s, to act as a test cluster for devs. On the local cluster inside the coder workspace we deploy istio to direct our ingress traffic. We setup rules (virtual services) to direct requests from vault.127-0-0-1.nip.io to the kubernetes service for a vault instance that is also deployed to the local cluster. This works perfectly and as expected. We test this by simply making a curl request to http://vault.127-0-0-1.nip.io and we get the correct response. I wanted to add a coder_app in the terraform for the template so that the UI could be accessed by the click of a button on the coder workspace page. I set the app as follows
Resource “coder_app” “vault” {
Agent_id = coder_agent.main.id
Slug = “vault”
Display_name = “vault”
Url = “http://vault.127-0-0-1.nip.io”
}
Resource “coder_app” “vault” {
Agent_id = coder_agent.main.id
Slug = “vault”
Display_name = “vault”
Url = “http://vault.127-0-0-1.nip.io”
}
However, when i ensure vault is deployed and accessible from within the workspace, and try to open the coder app I get a 404 http error. Looking at the istio logs it is making its way to the internal cluster but not recognising the request as being from http://vault.127-0-0-1.nip.io which results in istio dropping the connection. It feels a bit of a long shot, but does anyone know if this is possible to do. Or even how the coder_app makes its request? Many thanks, Conor
1 Reply
Codercord
Codercord3d ago
<#1341453349819781170>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.

Did you find this page helpful?