Configure "Elastic agents" on standalone Go server (v21.1.0)

42 views
Skip to first unread message

Satya Elipe

unread,
Jul 1, 2022, 11:53:53 AM7/1/22
to go-cd
Hi All

I would like to know how can we configure elastic agents for a standalone Go server which is used to CI/CD for our k8s cluster ?

Its been brought up long back with two static agents configured to it. As they are static they always run hence need guidence to turn the agents into elastic so to avoid idle costs.

Let me know if more information is required.

Thank you
Satya

Chad Wilson

unread,
Jul 1, 2022, 12:17:38 PM7/1/22
to go...@googlegroups.com
Hi Satya

If you are deploying GoCD into Kubernetes itself via the Helm chart into your cluster without overriding the plugin configuration the "Kubernetes elastic agents" plugin is installed out-of-the-box, if your intent is to run the agents as ephemeral containers inside a cluster.

You'd then need to follow https://github.com/gocd/kubernetes-elastic-agents/blob/master/docs/install.md to configure a cluster profile and 1+ elastic profiles, and then change your pipeline jobs to tell them to use a particular elastic profile ID to essentially tell them which agent container image to run, and what k8s resources the agents need.

-Chad

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/e4a5098c-ed26-45e5-ac8c-d0ec5251da3dn%40googlegroups.com.

Satya Elipe

unread,
Jul 2, 2022, 5:15:25 PM7/2/22
to go...@googlegroups.com
Hi Chad
Thank you for the input, appreciate it.
So, as I mentioned, my server is neither dockerized nor running as a pod in the cluster, it's just an amzn2 box running on its own. 
So, I think the second approach in your email works for me; but I just wonder, where can I find this jar (build/libs/kubernetes-elastic-agent-plugin-VERSION.jar) to download onto amzn2 ? (Ii think I'm terribly missing something finding it )


[>>You'd then need to follow https://github.com/gocd/kubernetes-elastic-agents/blob/master/docs/install.md to configure a cluster profile and 1+ elastic profiles, and then change your pipeline jobs to tell them to use a particular elastic profile ID to essentially tell them which agent container image to run, and what k8s resources the agents need.]

We are also planning to dockerize the GoCD+Agents soon, then I think the better approach would be the first point in your mail. 
[I would consider deploying a GoCD server as a pod and then elastic agents will be out of the box available and will be ready with the required configuration, I guess. ]

Thanks Again
Satya

Aravind SV

unread,
Jul 4, 2022, 11:21:16 AM7/4/22
to go...@googlegroups.com
I've updated https://github.com/gocd/kubernetes-elastic-agents/blob/master/docs/install.md to make it more clear where the plugin JAR file can be downloaded from.

Cheers,
Aravind

Satya Elipe

unread,
Jul 5, 2022, 12:35:35 PM7/5/22
to go...@googlegroups.com
Thank you Aravind, thats more clear now.

Reply all
Reply to author
Forward
0 new messages