# Fleet serve wrong elastic Address

**URL:** https://discuss.elastic.co/t/fleet-serve-wrong-elastic-address/350332
**Category:** Elastic Agent
**Tags:** fleet
**Created:** [January 3, 2024, 3:50pm UTC](https://discuss.elastic.co/t/fleet-serve-wrong-elastic-address/350332 "2024-01-03T15:50:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lukasz\_Skrzat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukasz_skrzat/32/130505_2.png) [@Lukasz\_Skrzat](https://discuss.elastic.co/u/Lukasz_Skrzat)
#### Post date: [January 3, 2024, 3:50pm UTC](https://discuss.elastic.co/t/fleet-serve-wrong-elastic-address/350332/1 "2024-01-03T15:50:27Z")

</div>

HI  
Installed new ECK instance with fleet server, but i change namespace from Default to logging-stack

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/6/f6887ca077cf694d1a2c60a7d6ff88e57ee615cf.png)

Changed in fleet configs addresses.

Now install new agents to kubernetes integration with fleet token but after deployment new agenct still want connect to default address

{"log.level":"warn","@timestamp":"2024-01-03T15:49:16.328Z","message":"DNS lookup failure "elasticsearch-quickstart-es-http.default.svc": lookup elasticsearch-quickstart-es-http.default.svc on 10.96.0.10:53: no such

in deployment manifest dont see any ENV with address  
Someone have any idea ?

---

<div class="post-metadata">

### Author: ![strawgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strawgate/32/131008_2.png) [@strawgate](https://discuss.elastic.co/u/strawgate)
#### Post date: [January 23, 2024, 1:11am UTC](https://discuss.elastic.co/t/fleet-serve-wrong-elastic-address/350332/2 "2024-01-23T01:11:42Z")

</div>

I believe there should be an environment variable in the manifest called `name: FLEET_URL` that you'll have to update otherwise (I think) the agents cannot get new policy and will continue attempting to write to the location specified in the previously obtained policy

---

<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: [February 20, 2024, 1:11am UTC](https://discuss.elastic.co/t/fleet-serve-wrong-elastic-address/350332/3 "2024-02-20T01:11:53Z")

</div>

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