'AKS Container Insights Adjust Agent Run Interval
I enabled Container Insights for Azure Kubernetes Services
I want to change the run interval for the OMS agent defined in the omsagent-rs-config file. I got the template from here : https://github.com/helm/charts/blob/master/incubator/azuremonitor-containers/templates/omsagent-rs-configmap.yaml
What have I tried :
- I created a ConfigMap file
- used
kubectl -f apply configMap.ymlwhere I essentially changed the log_level to info and run_interval to 10 min
<source>
type kubepodinventory
tag oms.containerinsights.KubePodInventory
run_interval 600
log_level info
</source>
- I deleted the omsagent pods and which caused them to be recreated.
- However my changes to the config map get overridden
How should I go about so that my changed stick.
update : why the manual changes don't stick
- I noticed that the config-map is annotated with
addonmanager.kubernetes.io/mode=Reconcilewhich as defined here https://fossies.org/linux/kubernetes/cluster/addons/addon-manager/README.md provides an explanation why it gets overridden. However I still need to understand the official way to update this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
