# Deploying elastic agent apm server on kubernates from fleet server

**URL:** https://discuss.elastic.co/t/deploying-elastic-agent-apm-server-on-kubernates-from-fleet-server/342284
**Category:** Elastic Agent
**Tags:** fleet
**Created:** [September 4, 2023, 6:44pm UTC](https://discuss.elastic.co/t/deploying-elastic-agent-apm-server-on-kubernates-from-fleet-server/342284 "2023-09-04T18:44:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mansoor\_Ur\_Rehman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mansoor_ur_rehman/32/125287_2.png) [@Mansoor\_Ur\_Rehman](https://discuss.elastic.co/u/Mansoor_Ur_Rehman)
#### Post date: [September 4, 2023, 6:44pm UTC](https://discuss.elastic.co/t/deploying-elastic-agent-apm-server-on-kubernates-from-fleet-server/342284/1 "2023-09-04T18:44:24Z")

</div>

## i have setup a elasticsearch, kibana and fleet server with elasticsearch self signed certificates successfully, i have also deployed a apm integration on a server with fleet server. the apm server listens on port http://my\_apm\_host.com:8200 without ssl. but conencts to fleet server on https with ssl certificate. i have used follwoing flags while installing elastic agent sudo ./elastic-agent install --url=https://fleet\_server.com:8220 --enrollment-token=my\_token== --certificate-authorities=/path\_to/ca.crt --fleet-server-es-ca=/path\_to/ca.crt --insecure

## my question is how do i integrate my kubernates enviroment with this fleet server. because i with kubernates deployment, i donot get these flags, --certificate-authorities=/path\_to/ca.crt --fleet-server-es-ca=/path\_to/ca.crt --insecure

## and how can i also deploy apm server as a daemonset in my kubernetes cluster. thankyou.

---

<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 2, 2023, 6:44pm UTC](https://discuss.elastic.co/t/deploying-elastic-agent-apm-server-on-kubernates-from-fleet-server/342284/2 "2023-10-02T18:44:47Z")

</div>

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