Comments (7)
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.
@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.
@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.
@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.
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.
@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.
@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)
- Cannot add new Cluster Profile HOT 4
- Elastic agents don't get assigned HOT 11
- Passing environment variables to Elastic Agents from templates HOT 2
- Wrong size parsing in utils/Size.java HOT 4
- Agents are killed after 10 minutes HOT 8
- Question: Which rule is the plugin using when it choose the k8s node for the agent? HOT 2
- Long delay when creating new agents. HOT 13
- Use other env variable in elastic agent pod name than POD_POSTFIX HOT 3
- Elastic agents should be able to use `http` to server communication HOT 1
- Limit number of Elastic Agents running per cluster profile HOT 6
- Secure Environment variables on elastic agent HOT 1
- getting Could not parse certificate: java.io.IOException: Empty input HOT 2
- Remote Configuration in Bitbucket private repo returns 403 HOT 2
- The pod is interrupted within 100s HOT 5
- If using a non-default namespace, GoCD is unable to render the status report page HOT 1
- After the gocd db data is migrated, the following error message is displayed: HOT 5
- Better document how to get service account tokens on modern Kubernetes HOT 4
- Cluster Status Report unable to render after restarting the GoCD server, cluster profile params returned in plain text HOT 5
- Incorrect credentials being used when creating Kubernetes Client HOT 6
- Need to insatll java on this gocd docker image what is the procedure , please anyone help HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-elastic-agents.