Accessing K8s container properties from another K8s container

3/27/2020

In a typical inter container communication, one needs to implement an inter-process communication mechanism such as REST. However, such an approach creates a dependency on the application running in the container.

My use case is such, I want to learn the properties of all containers running in the given worker node from some container in a given namespace. This namespace presumably will have special permissions.

For instance, I want to learn, from container A, volumes mounted on all other containers (containers B, C, D, etc.) in the worker node.

I understand that every container application is isolated from others and do not have any such access. Can you please provide the possible approaches?

-- AnilJ
google-kubernetes-engine
kubernetes
kubernetes-pod

0 Answers