looking for some solutions? You are welcome.

SOLVED: Modify file from kubernetes pod


I want to modify particular config file from kubernetes running pod at runtime. How can I get pod name at runtime and I can modify the file from running pod and restart it to reflect the changes? I am trying this in python 3.6.

Suppose, I have two running pods. In one pod I have config.json file. In that I have

{ "server_url" : "" }

So I want to replace to other kubernetes service's loadbalancer IP in it.

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots

No comments: