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
Using the mcr.microsoft.com/dotnet/aspnet:6.0-alpine in a K8S environment with the configuration JSON file watcher, changes to config maps are not detected.
This then appears that .net is not picking up changes that K8S has itself detected.
[Triage] It seems reasonable to add this environment variable for aspnet images assuming that there's no overhead that would negatively impact scenarios that don't require the file watcher. @davidfowl - Can you comment on whether setting DOTNET_USE_POLLING_FILE_WATCHER=true by default for all aspnet containers would be the right thing to do?
Given that the addition of explicitly setting this environment variable would be a breaking change, this would be a change that would only be considered for the upcoming .NET 7 release.
After further discussion, we won't be setting this variable in the Dockerfile. It will be up to the users of this container image to set the variable in their own Dockerfile to opt into this behavior. There is currently discussion around alternative solutions besides explicitly setting the DOTNET_USE_POLLING_FILE_WATCHER variable. If anything concrete happens with that, I'll update this issue to link to it.
Describe the Bug
Using the mcr.microsoft.com/dotnet/aspnet:6.0-alpine in a K8S environment with the configuration JSON file watcher, changes to config maps are not detected.
This then appears that .net is not picking up changes that K8S has itself detected.
See dotnet/runtime#36091 and dotnet/runtime#64222 for details.
The fix is to include
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
in the build process that creates the docker image. I have been asked on dotnet/runtime#64222 to raise this as an issue against the docker image.
Steps to Reproduce
The file is a config map in K8S
2. Run the container in K8S
3. Change the config map.
K8S will eventually detect the change but .net will not. Expected behaviour is that .net will also detect the change.
The fix is to include DOTNET_USE_POLLING_FILE_WATCHER=true in the container.
The assumption is that this should be set by default and not need an additional step for the container to work correctly in K8S
The text was updated successfully, but these errors were encountered: