servicesDomain = "" if (os.environ.get("SERVICES_DOMAIN") is None) else "." + os.environ.get("SERVICES_DOMAIN")
detailsHostname = "details" if (os.environ.get("DETAILS_HOSTNAME") is None) else os.environ.get("DETAILS_HOSTNAME")
ratingsHostname = "ratings" if (os.environ.get("RATINGS_HOSTNAME") is None) else os.environ.get("RATINGS_HOSTNAME")
reviewsHostname = "reviews" if (os.environ.get("REVIEWS_HOSTNAME") is None) else os.environ.get("REVIEWS_HOSTNAME")
I could not figure out, where those variables are set.
Could someone please tell me?
The Wiki guide does not say much about, how RATINGS_HOSTNAME is setup or environment variables are setup.
What I am trying to achieve is, I would like to create two services, for example Foo and Boo. Foo will call Boo and it has to know the address of Boo. How can I find out the address or how to define it for Boo.
I deployed the app BookInfo on my k8s cluster and it works as expected.
Looking at the review app and how the url of the ratings app is build: