Hi All, I have a query We created backend service for backend pods but how fron . . .

Rahul Jaiswal:
Hi All,
I have a query
We created backend service for backend pods but how frontend pads comes to know that It needs to connect backend services to connect to backend pods
Where do we define it ?

suresh goli:
as environment variable of your frontend container with same backend service name (best practice) or can be hardcoded in your image. Refer voting app deployment

Memo Toro:
Hi @Rahul Jaiswal you need to expose those services in the backend via Service in k8s. You could create ClusterIP services and then in your frontend services you need to provide the service name as a config or env. Let me know if that helps.

Rahul Jaiswal:
@suresh goli @Memo Toro Thank you :relaxed:
I got it