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
• 800 points
18 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
• 5,960 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
• 37,320 points
30 views
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
• 37,320 points
28 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
1,134 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 4 days ago in Kubernetes by Sirajul
• 5,960 points
10 views
0 votes
1 answer