<p>Weave Scope is an observability tool that provides a dashboard that shows all network connections between pods.</p>

<p><a href="https://github.com/weaveworks/scope" rel="nofollow noreferrer">https://github.com/weaveworks/scope</a></p>

CC BY-SA 4.0
2018-12-19T21:06:24.393Z
2018-12-19T21:06:24.393Z
user2640621
<p>Have a look to solutions implementing a service mesh.</p>

<p>For example ISTIO, Consul, Ambasador + Envoy...</p>

CC BY-SA 4.0
2018-05-19T01:14:12.847Z
2018-05-19T01:14:12.847Z
DevLounge
<p>One way to find interdependencies is to check the services page when <code>kubectl proxy</code> has been issued and one navigates to <a href="http://localhost:8001" rel="nofollow noreferrer">http://localhost:8001</a>. For example, if one deploys wordpress pods then a MySql pod and a wordpress pod will be created. As wordpress has to use a database like MySql one could see that the wordpress connects to the Mysql pod in the services page.</p>

<p>The help command of kubectl was consulted whether there is a subcommand that shows interdependencies, but that does not seem to be available.</p>

CC BY-SA 3.0
2018-03-11T18:01:43.713Z
2018-03-11T18:01:43.713Z
030
<p>Another option is to use a trace-based monitoring tool, eg something OpenTracing compatible. These will show requests as they flow through the entire system, allowing you to visualize dependencies.</p>

CC BY-SA 4.0
2018-12-18T07:13:08.357Z
2018-12-18T07:13:08.357Z
Xiong Chiamiov
<p>Two Pods run in a Kubernetes cluster. One is a simple Wordpress application and the other a Mysql database. The Wordpress Pod communicates with the Mysql database. </p>

<p>The aim is to find dependencies between pods. Is there any kubectl command or any tool like prometheus that is able to find interdependence between Pods?</p>

CC BY-SA 3.0
2018-03-06T15:46:06.063Z
How did you create these pods?
030
CC BY-SA 3.0
2018-03-07T04:06:53.133Z
By using deployment yaml files
avishkar
CC BY-SA 4.0
2019-12-23T07:51:37.353Z
Could you indicate whether you solved the issue?
030
<kubernetes><prometheus>
How to find interdependencies between pods in a Kubernetes cluster?
avishkar
# How to find interdependencies between pods in a Kubernetes cluster?

(Asked by: username_0 on 2018-03-06)

Two Pods run in a Kubernetes cluster. One is a simple Wordpress application and the other a Mysql database. The Wordpress Pod communicates with the Mysql database.

The aim is to find dependencies between pods. Is there any kubectl command or any tool like prometheus that is able to find interdependence between Pods?

**Tags:** kubernetes, prometheus

> **Comments:**
> **username_1**: How did you create these pods?  
> **username_0**: By using deployment yaml files  
> **username_1**: Could you indicate whether you solved the issue?  

---

## 4 answers

### Answer by username_2 on 2018-12-19. Score: 2

Weave Scope is an observability tool that provides a dashboard that shows all network connections between pods.

<https://github.com/weaveworks/scope>


---

### Answer by username_3 on 2018-05-19. Score: 2

Have a look to solutions implementing a service mesh.

For example ISTIO, Consul, Ambasador + Envoy...


---

### Answer by username_1 on 2018-03-11. Score: 1

One way to find interdependencies is to check the services page when `kubectl proxy` has been issued and one navigates to <http://localhost:8001>. For example, if one deploys wordpress pods then a MySql pod and a wordpress pod will be created. As wordpress has to use a database like MySql one could see that the wordpress connects to the Mysql pod in the services page.

The help command of kubectl was consulted whether there is a subcommand that shows interdependencies, but that does not seem to be available.


---

### Answer by username_4 on 2018-12-18. Score: 1

Another option is to use a trace-based monitoring tool, eg something OpenTracing compatible. These will show requests as they flow through the entire system, allowing you to visualize dependencies.


---

