A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
3 of 3 Copy edited (e.g. ref. <https://en.wikipedia.org/wiki/DevOps>, <https://en.wikipedia.org/wiki/Docker_%28software%29>, <https://en.wikipedia.org/wiki/Jenkins_%28software%29>, <https://en.wikipedia.org/wiki/Kubernetes>, and <https://en.wikipedia.org/wiki/Ansible_(software)>).

Change variable inside of project. Jenkins, docker, kubernetes

Because I am new in the DevOps, I don't know where I need to apply the changes to correctly run the project.

The structure:

Git → Jenkins → Docker build -> Kubernetes (deploy)

Is it better to make the change of variables in the project, (example: password, database connection, etc.) to Jenkins, Kubernetes, or Docker?


With docker-compose I use an environment variable to change the variable inside my code.


I want to change this variable and run correctly in the production environment.

I don't know where it is the best to change the variable, Jenkins, Kubernetes with Ansible, etc.