Mechanism to inject sidecar containers into Kubernetes PODs
This repository contains all the files required to perform the injection of the sidecar container into an already-existent Kubernetes POD by patching the pre-existent deployment with the new container.
To use this system, you have to create the docker image using the existent Dockerfile and host it in a public or private container registry. Afterwards, replace the string in the helm/templates/job.yaml file with the proper container image path.
In addition, set the value of INJECTIONS_LIST in the helm/values.yaml with the list of deployment names next to which the sidecar will be deployed.
Observation: Any container may be placed as a sidecar. Choose at your convenience and adapt the content of scripts/injectionMechanism.sh script before creating the container image.