Service to Service Communication

3.4 Service to Service Communication

Service to Service Communication

Step1: Deploy the backend of the Application

kubectl apply -f 1-backend-deployment.yaml

Step2: Verify the deployment

kubectl describe deployment hello

Step3: Deploy the backend Service

kubectl apply -f 2-backend-service.yaml

Step4: Verify the Service

kubectl describe service hello

Step5: Deploy the Frontend Application

kubectl apply -f 3-frontend-deployment.yaml

Step6: Deploy the Frontend Service

kubectl apply -f 4-frontend-service.yaml

Step7: Send traffic to the frontend service and verify weather we are able to access backend

kubectl get pods -o wide

Identify on which worker node your frontend is running.

Step8: Browse the Node IP with the above mentioned port

You should be able to see the webpage loaded

Clear Pods, Deployments, Services

Delete all Pods

Delete all Deployments

Delete all Services

Clear Everything in the current namespace

Last updated

Was this helpful?