My current attempt at implementation utilizing Jenkins as the CICD tool sitting on top of K8S.
I wanted to piggyback the Jenkins agent and dynamically add additional containers to the pod declaration from a user supplied yaml file sitting in the repository of the current build. I have this working using inheritFrom
with the Kubernetes plugin but this has to be done after the initial agent is already provisioned and it ultimately creates a secondary agent for the particular stage. Is there anyway to achieve this in a manner that is not in-flight (that the YAML can be merged before the agent is provisioned)?
I feel like there is a much better way to go about this but haven’t found anything in my search.