Skip to content

ReloadOnChange of AddJsonFile is invalid in kubernetes. #36091

Description

@expcat

AB#1282969

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:
step1

After modification the configmap(delay about 10 sec):
step2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutarea-System.IObug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions