openshift-cookbook
openshift-cookbook copied to clipboard
How can I create a service description that maps to an external application?
What is the new topic you would like to added to the OpenShift cookbook?
How can I create a service description that maps to an external application?
Show how Service/EndPoint objects can be used to map to IP addresses of instance of an application external to OpenShift, but where OpenShift provides an internal DNS name to access it.
Similarly, how can map Service to external application using its FQDN. Not sure if that later can be used with a Route though since haproxy would normally pick ip IPs from endpoints list and balance between them directly.
If this is to help you solve a specific problem, can you describe that problem?
Wanting to use a Route in OpenShift that is able to balance traffic between internal application and an existing external application. Need to do it via an internal Service with suitable labels.
Should also talk about how to add host aliases in /etc/hosts
of the pod.