Deployment of .Net applications

Hi All,
I am new in this forum,

I have a scenario, I have a image of .NET applicaiton for windows , now i have deployed it on kubernetes. But i need to have some configuration changes like / IP addresses in my Config files( XML files) . After changing when i restart IIS then all changes reset as base image don’t have those changes. I want to know how can i presist those changes , or how i can dynamically make changes when the pod start using service discovery and initContainers.

Imran Zaheer

Have you looked at .Net Configuration builders? They provide a way to merge data from outside sources, such as environment variables set by Kubernetes, into your config file.

1 Like

My sample here uses them to discover a SQL database IP, username & password:

1 Like