Skip to content

Elastic Agent is no work #11154

Answered by chadlwilson
xlw712 asked this question in Q&A
Dec 30, 2022 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

The error should be pretty clear - UnknownHostException: gocd-server: Name or server not known

The agent cannot find that server at that hostname from wherever it is running. If you relied on the "preconfigure" script as shown above without manually editing the cluster profile, you are probably creating agents in a different namespace to your server: https://github.com/gocd/kubernetes-elastic-agents/blob/master/docs/configure_cluster_profile.md

By default, the Helm chart preconfigure sets gocd to create agents in the same namespace as the server, but in the above you seem to have manually changed the server to be in the gocd namespace, but the agent profile is being preconfigured to default

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@xlw712
Comment options

@chadlwilson
Comment options

@xlw712
Comment options

Answer selected by xlw712
Comment options

You must be logged in to vote
4 replies
@chadlwilson
Comment options

@xlw712
Comment options

@chadlwilson
Comment options

@xlw712
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants