5

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?

3
  • How did you create these pods? – 030 Mar 6 '18 at 15:46
  • By using deployment yaml files – avishkar Mar 7 '18 at 4:06
  • Could you indicate whether you solved the issue? – 030 Dec 23 '19 at 7:51
2

Have a look to solutions implementing a service mesh.

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

2

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

https://github.com/weaveworks/scope

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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.