You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #289 we hardcoded the enableServiceLinks to true or false as per the previous templates. In practice, it may be more useful to allow a service to opt-in to having these variables created to aid in service discovery.
Setting enableServiceLinks: true in a kubernetes service creates a set of named env vars relating to the other services in the namespace.
Eg having a redis-7 service will create the following in any service that has servicelinks=true
But the k8s docs have this note which is why I'm pretty sure we set it to false in most templates.
If the service environment variables are not desired (because possible clashing with expected program ones, too many variables to process, only using DNS, etc) you can disable this mode by setting the enableServiceLinks flag to false on the pod spec.
Sure, we could make it optional, but it could cause problems for those unaware.
In #289 we hardcoded the
enableServiceLinks
to true or false as per the previous templates. In practice, it may be more useful to allow a service to opt-in to having these variables created to aid in service discovery.Setting
enableServiceLinks: true
in a kubernetes service creates a set of named env vars relating to the other services in the namespace.Eg having a redis-7 service will create the following in any service that has servicelinks=true
The text was updated successfully, but these errors were encountered: