Reputation: 566
I am Dockerizing the Asp.net core application and how do I read configmap & secret in asp.net core application?
Upvotes: 1
Views: 2590
Reputation: 128975
When designing an app for Kubernetes, you should usually follow the 12 factor app guidelines.
It is common that the app read config-values as Environment variables, but sometimes also as files. The Kubernetes documentation has good examples on how to use ConfigMaps for Pods to read the values as Env variables or files.
Upvotes: 2