Hi All,
My application is running in different cloud environment, which have different service injection mechanism. I want to auto determine the configuration based on environment. How do I know if I’m running in rancher?
Regards,
Ian.
Hi All,
My application is running in different cloud environment, which have different service injection mechanism. I want to auto determine the configuration based on environment. How do I know if I’m running in rancher?
Regards,
Ian.
One way would be looking for the metadata service, either with a DNS query for rancher-metadata
or rancher-metadata.rancher.internal
resolves, or making a HTTP request and seeing that it returns 2xx.