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 ?
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
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.
@suresh goli @Memo Toro Thank you
I got it