Configure application return uri

My oauth config is building my return_uri out of an IP address. Running in kubernetes my IP can change so I would like to configure my domain name rather than keep my oauth configs referencing a set of IP addresses. I don’t see a way to configure the hostname of my k8s service in my application.yml file. Is there another way to inject this behavior that I can’t find?