ondotnet icon indicating copy to clipboard operation
ondotnet copied to clipboard

Redis connection

Open eliassal opened this issue 4 years ago • 1 comments

Hi Nich, the session on live .Net about microservices was very interesting and informative. A quesion, in tye.yaml, for redis connectionString: "${host}:${port}" How do they get populated during runtime? I noticed that in the startup of backend there is var con = Configuration.Getconnectionstring("redis");

but there is no key in the app setings

Thanks for your help

eliassal avatar Dec 15 '20 15:12 eliassal

Thanks @eliassal These configuration will be part of the Environment variables that are set during deployment. These are configured in tye.yaml for local deployment. In Kubernetes, Tye uses Kubernetes secrets to store connection information about dependencies like redis. This doc may be helpful in understanding it: https://github.com/dotnet/tye/blob/master/docs/tutorials/hello-tye/02_add_redis.md

nishanil avatar Dec 15 '20 18:12 nishanil