Modified configmap doesn't effect?

William A Wang 241 Reputation points
2022-03-29T09:54:28.837+00:00

My app could access the current cluster and check the pods under specified namespace. If the pod has some unhealth logs it will send message to management team.

Here are the codes in config map:
data:
appsettings.Production.json: |-
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"logdurationsecond": 900,
"monitornamespace": [
"stockrater", "xconverterjob"
],
"mailfrom": "****",
"mailto": "****",
"mailhost": "****",
"mailpassword": "****",
"mailport": 587
}

The stage "monitornamespace" used to set to "default" and "test" for beta testing. And after that we set to the value above to some production workloads to let it monitor the production workload.
And here are the logs of cronjob running result:

187893-wechat-screenshot-20220329174741.png

So the question is, the configmap is updated but why the workload doesn't effect?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,182 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.