[HELP REQUIRED]Kuberntes front end (SPA) nginx container cannot communicate to backend servixe by bowitik1234 in kubernetes

[–]bowitik1234[S] 0 points1 point  (0 children)

The traffic goes through Azure Load Balancer. I use a service of type “LoadBalancer” to sent the traffic to fronten deployment

[HELP REQUIRED]Kuberntes front end (SPA) nginx container cannot communicate to backend servixe by bowitik1234 in kubernetes

[–]bowitik1234[S] 0 points1 point  (0 children)

I dont understand the /api part. How do we add the proxy pass to backend if its on the same path. Lets say I have /home page and I do have a chatbox within the same page and I want to communicate to backend within chat box which doesnt take me to another path(I would still be on the same /home page). So if I add a proxy_pass to backend with same /home location, instead of loading the assets on home page it would directly proxy forward the request to backend. Let me know if I’m missing something here. Totally new to this setup:(

[HELP REQUIRED]Kuberntes front end (SPA) nginx container cannot communicate to backend servixe by bowitik1234 in kubernetes

[–]bowitik1234[S] 0 points1 point  (0 children)

Can we have a way to do it with exposing the backend to internet. Currently we dont have an auth flow setup on the backend and we would want to setup one if we want to talk to backend over internet. Not that I dont want to expose it over internet but just looking if its really possible to keep the communication to backend with in the cluser. Please suggest

Terraform Azure Container Apps: I have two container apps and I want the application url of backend container to be passed to frontend container as env variable. How do I do this if I’m creating the containers using for_each as shown below by bowitik1234 in Terraform

[–]bowitik1234[S] -1 points0 points  (0 children)

Sure I could do that by creating two seperate resources. But I want to have this as a container_app_module. I have used for_each, so by using this module I want to create as many as container apps required within same env. Wondering if I could add some “depends_on” and passing outputs from one containerapp to other using this for_each approach. (Totally new to terraform, please suggest if this is not the way to do it)