# Exclude namespaces from the kubernetes fleet package

**URL:** <https://discuss.elastic.co/t/exclude-namespaces-from-the-kubernetes-fleet-package/311589>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [August 7, 2022, 5:21am UTC](https://discuss.elastic.co/t/exclude-namespaces-from-the-kubernetes-fleet-package/311589 "2022-08-07T05:21:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joepa37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joepa37/32/109327_2.png) [@joepa37](https://discuss.elastic.co/u/joepa37)\
**Post date:** [August 7, 2022, 5:21am UTC](https://discuss.elastic.co/t/exclude-namespaces-from-the-kubernetes-fleet-package/311589/1 "2022-08-07T05:21:09Z")

</div>

Does anybody know how to exclude namespaces from the kubernetes fleet package.

I am using this recipe right now: [cloud-on-k8s/fleet-kubernetes-integration.yaml at main · elastic/cloud-on-k8s · GitHub](https://github.com/elastic/cloud-on-k8s/blob/main/config/recipes/elastic-agent/fleet-kubernetes-integration.yaml)

I want to exclude the elastic namespace where I deployed those resource to avoid saving logs from elastic itself and other namespaces (kube-system and cattle-system) that I don’t really need container logs

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 4, 2022, 5:21am UTC](https://discuss.elastic.co/t/exclude-namespaces-from-the-kubernetes-fleet-package/311589/2 "2022-09-04T05:21:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
