# Elastic APM 8.2 in kubernetes

**URL:** <https://discuss.elastic.co/t/elastic-apm-8-2-in-kubernetes/305755>\
**Category:** APM\
**Tags:** server\
**Created:** [May 26, 2022, 8:41pm UTC](https://discuss.elastic.co/t/elastic-apm-8-2-in-kubernetes/305755 "2022-05-26T20:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![senyam08](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senyam08/32/106230_2.png) [@senyam08](https://discuss.elastic.co/u/senyam08)\
**Post date:** [May 26, 2022, 8:41pm UTC](https://discuss.elastic.co/t/elastic-apm-8-2-in-kubernetes/305755/1 "2022-05-26T20:41:23Z")

</div>

We are trying to instal APM server 8.2 to trace our applications. AS APM Server standalone is deprecated, trying to get APM server running in our kubernetes cluster. Could you provide sample YAML to run APM integration in kubernetes cluster. Also do we need fleet server for APM integration to work or can we run without fleet. If fleet required, could you provide sample YAML files to deploy fleet in kubernetes and enable APM integration. Thanks

---

<div class="post-metadata">

**Author:** ![stuart.nelson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stuart.nelson/32/99866_2.png) [@stuart.nelson](https://discuss.elastic.co/u/stuart.nelson)\
**Post date:** [May 30, 2022, 8:58am UTC](https://discuss.elastic.co/t/elastic-apm-8-2-in-kubernetes/305755/2 "2022-05-30T08:58:27Z")

</div>

I recommend that you install fleet, and enroll elastic-agents to be managed by fleet.

Information on installing a fleet-server are available here: [Add a Fleet Server | Fleet and Elastic Agent Guide [8.2] | Elastic](https://www.elastic.co/guide/en/fleet/current/add-a-fleet-server.html)

Information on installing elastic-agent to kubernetes, as well as sample yaml manifest files, are available in our documentation: [Run Elastic Agent on Kubernetes managed by Fleet | Fleet and Elastic Agent Guide [8.2] | Elastic](https://www.elastic.co/guide/en/fleet/current/running-on-kubernetes-managed-by-fleet.html)

You'll need to update the manifest files according to the configuration for your fleet server, such as updating `FLEET_ENROLLMENT_TOKEN` in the yaml manifest for elastic-agent.

---

<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:** [June 20, 2022, 4:59am UTC](https://discuss.elastic.co/t/elastic-apm-8-2-in-kubernetes/305755/3 "2022-06-20T04:59:26Z")

</div>

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