Adding the APM Insight Java agent in Kubernetes via Init Containers
These steps guide you through the process of integrating the APM Insight Java agent into your Kubernetes deployment using Init Containers.

Refer to this KB article for detailed instructions and examples. - Create a secret for the APMInsight license key in your application namespace.
- Create an empty volume that will be used to copy the agent files during the InitContainers process.
- Include the InitContainers command in your Helm chart or deployment YAML file to copy agent files from the docker image to your volume.
- Mount the volume created in Step 2 into your application container.
- Include the environment variables (S247_LICENSE_KEY and JAVA_TOOL_OPTIONS) in the application deployment YAML file.
Adding APM Insight Java agent in Kubernetes via Persistent Volumes
This explains how to set up the APM Insight Java agent for applications running in Kubernetes using Persistent Volumes.

Refer to this KB article for prerequisites and detailed instructions. - Create a Persistent Volume and copy all the agent files into it.
- Mount the volume into the application container.
- Create a secret for the APMInsight license key in your application namespace.
- Include the environment variables (S247_LICENSE_KEY and JAVA_TOOL_OPTIONS) in the application deployment YAML file.