<p>I am trying to implement the distcc for my compilations using docker &amp; kubernetes. How do I dynamically give IP Addresses of the containers?</p>

<p>To save your time, I would rather recommend using a concept of <a href="https://coreos.com/operators/" rel="nofollow noreferrer">service-operator</a> in Kubernetes. this deploys a software stack for you on Kubernetes cluster, without the need of taking care about the details (like IP address of container where instance of distcc daemon is running).</p>

<p>Please check this <a href="https://github.com/mbrt/k8cc" rel="nofollow noreferrer">k8cc</a> - Distcc autoscaler project on github.</p>
