I am trying to implement the distcc for my compilations using docker & kubernetes. How do I dynamically give IP Addresses of the containers?
To save your time, I would rather recommend using a concept of service-operator 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).
Please check this k8cc - Distcc autoscaler project on github.