How to limit the agent to watch certain namespaces 👮🏽

By default, the agent watches all namespaces. To limit the agent to watch a specific namespace, set the events.watchNamespace value in the values file. For example, to limit the agent to watch the default namespace, apply the following YAML configuration:

events:
  watchNamespace: default

You can also specify a list of namespaces to avoid watching by settings the events.namespaceDenyList value in the values file. For example, to avoid watching the kube-system and kube-public namespaces, apply the following YAML configuration:

events:
  namespaceDenyList: ["kube-system", "kube-public"]

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.