Unusual kubernetes usage

6/18/2018

I would like to create a service with kubernetes which allows reading files with filebeat.

So, I have kubernetes cluster and I would create Deployment/Statefulset or any other to manage pods.

Next, I have many folders with log files.

I would set a single folder with files to a single pod. So, in result it must be "folders count"=="pods count". I know that this is not a normal job for k8s, but I guess this is possible somehow.

The first way I found is to generate ConfigMap with settings for each Pod, but it's not exactly what I need as it's too hard to manage each pod as standalone service, I cannot stop selecting POD for maintenance, for an example.

-- Estatic
kubectl
kubernetes

0 Answers