Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet-URL for agnet Is not using what is in configuration yaml #6040

Open
Thor192 opened this issue Nov 15, 2024 · 4 comments
Open

Fleet-URL for agnet Is not using what is in configuration yaml #6040

Thor192 opened this issue Nov 15, 2024 · 4 comments
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@Thor192
Copy link

Thor192 commented Nov 15, 2024

Please post all questions and issues concerning the Elastic Agent on https://discuss.elastic.co/c/beats
before opening a Github Issue. Your questions will reach a wider audience there,
and if we confirm that there is a bug, then you can open a new issue.

For security vulnerabilities please only send reports to [email protected].
See https://www.elastic.co/community/security for more information.

Please include configurations and logs if available.

For confirmed bugs, please report:

  • Version:
  • Operating System:
  • Discuss Forum URL:
  • Steps to Reproduce:
Client Version: v1.29.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1
Talos
Server:
        NODE:        192.168.0.85
        Tag:         v1.7.4
https://discuss.elastic.co/t/agent-fleet-url-not-taking-what-is-in-the-yaml-config/370278

First of all I would like to say if anyone reads this or take the time I appreciate it. I'm trying to deploy on a Kubernetes cluster and I cannot get agents that sit inside the kube-system namespace to register with the fleet server that is in a different namespace (eck). I have checked both the flint configuration page and the yaml file that has been provided by the integration. Below is that configuration section.

      containers:
        - name: elastic-agent
          image: docker.elastic.co/beats/elastic-agent:8.15.4
          env:
            # Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
            - name: FLEET_ENROLL
              value: "1"
            # Set to true to communicate with Fleet with either insecure HTTP or unverified HTTPS
            - name: FLEET_INSECURE
              value: "true"
            # Fleet Server URL to enroll the Elastic Agent into
            # FLEET_URL can be found in Kibana, go to Management > Fleet > Settings
            - name: FLEET_URL
              value: "https://fleet-server-agent-http.eck.svc:8220"

Logs indicate that the URL is not being used.

{"log.level":"error","@timestamp":"2024-11-15T08:20:10.159Z","message":"Error dialing lookup elasticsearch-es-http.elastic-system.svc on 10.96.0.10:53: no such host","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"filestream-monitoring","type":"filestream"},"log":{"source":"filestream-monitoring"},"network.transport":"tcp","server.address":"elasticsearch-es-http.elastic-system.svc:9200","ecs.version":"1.6.0","log.logger":"esclientleg","log.origin":{"file.line":39,"file.name":"transport/logging.go","function":"github.com/elastic/elastic-agent-libs/transport/httpcommon.(*HTTPTransportSettings).RoundTripper.LoggingDialer.func2"},"service.name":"filebeat","ecs.version":"1.6.0"}

I'm happy to respond with any information that is needed or even acknowledgement that I'm doing something dumb.

@Thor192 Thor192 added the bug Something isn't working label Nov 15, 2024
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pierrehilbert
Copy link
Contributor

Hello @Thor192, https://discuss.elastic.co/ would probably be a better place to ask for help as here is more for bugs and enhancement request.
@pkoutsovasilis Could you please have a look here when you will have time?

@Thor192
Copy link
Author

Thor192 commented Nov 15, 2024

Thank you for this information I've posted there multiple times and I never get any traction or help I don't want to pester anybody I'm just trying to learn and understand.

@strawgate
Copy link
Contributor

strawgate commented Nov 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

4 participants