# ECK 8.7 Fleet managed Agents, Create Policy, Add Integrations & Agent enrollment via code

**URL:** <https://discuss.elastic.co/t/eck-8-7-fleet-managed-agents-create-policy-add-integrations-agent-enrollment-via-code/342626>\
**Category:** Elastic Agent\
**Created:** [September 8, 2023, 3:26pm UTC](https://discuss.elastic.co/t/eck-8-7-fleet-managed-agents-create-policy-add-integrations-agent-enrollment-via-code/342626 "2023-09-08T15:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayur.kadam](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@mayur.kadam](https://discuss.elastic.co/u/mayur.kadam)\
**Post date:** [September 8, 2023, 3:26pm UTC](https://discuss.elastic.co/t/eck-8-7-fleet-managed-agents-create-policy-add-integrations-agent-enrollment-via-code/342626/1 "2023-09-08T15:26:33Z")

</div>

We have ECK (2.7) installed on our AKS cluster and used Elastic agents for policy orchestration managed by fleet server. The Policy creation and addition of Integration to the Policy is currently done via UI console and enrollment is done via kuberment manifest (generated from UI console).  
We would like to have all these steps done via code (preferably Kubernetes manifests  
or via configuration management like ansible) to automate the steps. My usecase has a policy with 4 Integrations (kubernetes, system, nginx ingress controller, elasticsearch).  
How can I achieve the same ?

---

<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:** [October 6, 2023, 3:27pm UTC](https://discuss.elastic.co/t/eck-8-7-fleet-managed-agents-create-policy-add-integrations-agent-enrollment-via-code/342626/2 "2023-10-06T15:27:33Z")

</div>

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