Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2018-12-19T21:06:24.393Z
Answers: 2018-12-19T21:06:24.393Z
Answers: user2640621
Answers: <p>Have a look to solutions implementing a service mesh.</p>
  
  <p>For example ISTIO, Consul, Ambasador + Envoy...</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-05-19T01:14:12.847Z
Answers: 2018-05-19T01:14:12.847Z
Answers: DevLounge
Answers: <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>
  
Answers: CC BY-SA 3.0
Answers: 2018-03-11T18:01:43.713Z
Answers: 2018-03-11T18:01:43.713Z
Answers: 030
Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2018-12-18T07:13:08.357Z
Answers: 2018-12-18T07:13:08.357Z
Answers: Xiong Chiamiov
Body: <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>
  
Comments: CC BY-SA 3.0
Comments: 2018-03-06T15:46:06.063Z
Comments: How did you create these pods?
Comments: 030
Comments: CC BY-SA 3.0
Comments: 2018-03-07T04:06:53.133Z
Comments: By using deployment yaml files
Comments: avishkar
Comments: CC BY-SA 4.0
Comments: 2019-12-23T07:51:37.353Z
Comments: Could you indicate whether you solved the issue?
Comments: 030
Tags: <kubernetes><prometheus>
Title: How to find interdependencies between pods in a Kubernetes cluster?
UserDisplayName: avishkar
ThreadText: # 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.
  
  
  ---
  
  