Reputation: 1
let's say I have certain containers running in a cluster like kube-apiserver, dns-controller and let's say these two containers are communicating with each other, so I want to capture these interactions in a tabular format like [from]-[to] or in any other JSON structure for all the containers running in the cluster. Is it possible to get these details using Kubernetes python client?
Used weavescope (Service discovery tool) to get the same information through some API, but I want to explore other methods, tried looking into the kubectl commands, but was not useful. I'm currently going through Container Network Interface (CNI) concepts.
can someone suggest an approach that can be tried or any existing way to achieve this?
Upvotes: 0
Views: 85
Reputation: 30083
If you are looking for just visualisation same as weavescope you can explore the : spekt8 or Kiali with Istio(service mesh, it would be too much)
If you want to use just K8s API and trying visualization this might could help you: kubesurveyor
Kubesurveyor is an open-source and python based option, which is not required to run on the K8s cluster.
Another one with K8s API : https://github.com/benc-uk/kubeview
Upvotes: 0