Description
Describe the bug
I tried to bind config.json in kubernetes with configmap volumeMounts.
When I modify the config.json in the configmap, the contents of the config.json in the container are the same as those in the configmap (delay about 10 seconds after the modification will be synchronized to the container), but there is no change in the program.
To Reproduce
This is my test code https://github.com/expcat/configmap-test
I use configmap-test.yaml to run it in the internal kubernetes test.
Expected behavior
curl localhost/api/values response value returned should be consistent with the contents of config.json.
Screenshots
When the container is initialized:
After modification the configmap(delay about 10 sec):
Additional context
kubernetes ver: 1.13.3
asp.net core ver: 2.2.2
English is not my native language. Please forgive me if any wrong expression.