Accessing host file system on all nodes in kubernetes cluster

4/2/2018

I have a requirement where i dump some data under /etc on all the nodes within my cluster and i have a statefulSet deployed on this cluster with 1 instance on every node. I wanted to understand how can i access data residing at /etc on all the nodes in the cluster from within my POD during runtime when the request hits my POD via the service ?

e.x: 3 node cluster (N1, N2 and N3). Each node has the stateful set deployed. Lets call it N1pod, N2pod and N3pod. If a request hits N2pod, i want the data from N1 and N3 apart from N2 from /etc/foo.txt.

-- Rakshith Venkatesh
kubernetes

0 Answers