looking for some solutions? You are welcome.

SOLVED: Modify file from kubernetes pod

ImPurshu:

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" : "http://127.0.0.1:8080" }

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



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

No comments:

Recent