Is it possible for containers within a pod to communicate with each other?

0 votes
Can containers within a Kubernetes Pod communicate with each other?
Jul 12 in Kubernetes by Namik
• 1,210 points
110 views

1 answer to this question.

0 votes

Yes, it is possible for containers to communicate within a pod. 

They reach other on localhost network. 

For example, if you have two containers within a pod, a MySQL container running on port 3306, and a PHP container running on port 80, the PHP container could access the MySQL one through localhost:3306.

answered Jul 12 by Sirajul
• 39,540 points

Related Questions In Kubernetes

0 votes
1 answer

Is it possible to access GCP resources using api without a user interaction.?

yes that's totally possible. You'd have to create ...READ MORE

answered Sep 19, 2018 in Kubernetes by Kalgi
• 42,510 points
46 views
+1 vote
1 answer
0 votes
1 answer

Is possible to have same k8s service for multiple pods?

Reserve a static IP and then assign ...READ MORE

answered Jul 20, 2018 in Kubernetes by Kalgi
• 42,510 points
49 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
3,104 views
+3 votes
1 answer
0 votes
1 answer

Is it possible to force the pod to run on a specific node?

By default, anti-affinity is not attempted by ...READ MORE

answered Jul 15 in Kubernetes by Sirajul
• 39,540 points
54 views
0 votes
1 answer