Pod to Pod Proxy Communication
3.3 Pod to Pod Proxy Communication
Step1: Setup Configmap with all reverse proxy necessaray configuration
kubectl apply -f configmap.yamlStep2: Deploy the reverse-proxy containers
kubectl apply -f reverse-proxy.yamlkubectl get pods -o wideStep3: Expose the Pod using the NodePort service
kubectl get svckubectl expose pod mc3 --type=NodePort --port=80kubectl get svcStep4: Verify the node port that is allocated
kubectl describe service mc3Step5: Browse the Node IP with the above mentioned port
Understand flow
Step 6: Look at the logs of WebappContainer
kubectl logs mc3 -c webappStep 7: Look at the logs of nginxContainer
kubectl logs mc3 -c nginxClear Pods,Deployments,Services
Delete all Pods
Delete all Deployments
Delete all Services
Clear Everything in the current namespace
Last updated
Was this helpful?