Git Product home page Git Product logo

Comments (7)

arvindsv avatar arvindsv commented on June 11, 2024

I could be wrong, but the chosen image (travix/gocd-agent-gcloud-jdk-8) doesn't seem to be setup for elastic agents. So, it's probably coming up, but doesn't know how to autoregister using the environment variables that the plugin is providing while starting it.

This section in the docker elastic agent's README mentions what is needed to use a custom docker image with elastic agents. This is how those variables are used in GoCD's official docker image.

Maybe we need to mention the same in the README of these elastic agents. /cc @sheroy

from kubernetes-elastic-agents.

sheroy avatar sheroy commented on June 11, 2024

@cfontes, this is correct. We'll add these instructions in the k8s Elastic Agent README. For now, can you confirm that using the official GoCD agent Docker image works for you?

from kubernetes-elastic-agents.

cfontes avatar cfontes commented on June 11, 2024

@arvindsv Thanks for the details

@sheroy just tried with gocd/gocd-agent-docker-dind:v18.6.0 and it works.

I've seen that guide while troubleshooting it yesterday, but I it was not clear to me with my limited knoweldge what I was missing or why. I will try to adapt it and try again.

from kubernetes-elastic-agents.

arvindsv avatar arvindsv commented on June 11, 2024

@sheroy If it's possible to provide a template for converting a non-elastic-agent Docker image to an elastic agent one, then we should. I mean, if it's just the creation of an autoregister.properties file in the right place, we might be able to do that. Let me know if you're ok taking a look at it.

@cfontes The agent is the same. It's just that in the context of it being started from an elastic agent plugin, the environment variables it needs to use to connect to the GoCD server are different. The Docker images which are used in the elastic agent context make sure that the environment variables are used.

from kubernetes-elastic-agents.

cfontes avatar cfontes commented on June 11, 2024

@arvindsv

I just got it working. I love this feature, thank you for it!

Would be great to have a way to do it in the Helm Chart, I've added a config map in my case with the script to generate the config file, but the agent container needs to run the script so that requires some specific changes to it.

Some kind of side car, or init container that you could just copy paste maybe.

from kubernetes-elastic-agents.

sheroy avatar sheroy commented on June 11, 2024

@arvindsv Yes, I can look into this soon.

@cfontes, can I also catch up with you at some point to talk to you about your use case and how you are using our K8S plugin?

from kubernetes-elastic-agents.

cfontes avatar cfontes commented on June 11, 2024

@sheroy, as soon as I have something more solid we sure can.

Thanks I will close this issue ;)

from kubernetes-elastic-agents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.