Git Product home page Git Product logo

Comments (2)

GaneshSPatil avatar GaneshSPatil commented on June 2, 2024

Hi @ronalcelaya,

Here we're talking about two different "Environment Variables", the GoCD Environment Variables and the Environment Variables specified to the Pod as Pod Yaml Spec.

In Kubernetes Elastic Agent Plugin Pod Yaml Spec, the Environment Variables are the Kubernetes supported Environment Variables, which will be passed on to the Pod and eventually will be consumed by GoCD Elastic Agent. Hence, we can not specify Encrypted Environment Variables as part of Pod Yaml Spec.

There are following two approaches to pass encrypted environment variables to the Kubernetes Elastic Agent Pod:

1. Using GoCD Environment:

GoCD Environment contains pipelines, agents and environment variables. The environment variables from the environment are passed to the agents. You can create an environment for the pipeline(which requires k8s elastic agent) and then specify the secure environment variable, which will be available to the k8s EA pod. You can find more information about GoCD Environments here.

Note, You don't need to specify the GoCD environment to the Kubernetes Elastic Agent. As the pipeline belongs to the environment, all the elastic agents of that pipeline too will be added to the same environment.

2. Using Kubernetes Secrets:

We can use Kubernetes secrets to pass secure values to the pods as environment variables. Know more about it at kubernetes.io.

from kubernetes-elastic-agents.

ronalcelaya avatar ronalcelaya commented on June 2, 2024

Hi @GaneshSPatil
Thanks for your answer.
I'm using Kubernetes Secrets and now everything works as expected. Thanks for your help

Best regards

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.