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
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
kubectl delete --all pods --namespace=default
Delete all Deployments
kubectl delete --all deployments --namespace=default
Delete all Services
kubectl delete --all svc --namespace=default
Clear Everything in the current namespace
kubectl delete all --all -n default
Last updated
Was this helpful?