How to deploy the Site24x7 Kubernetes agent as a sidecar container of your application
Imagine a scenario where you are operating a Redis application within Amazon Elastic Kubernetes Service (EKS) on AWS Fargate, requiring monitoring. To accomplish this, you can deploy the Site24x7 Kubernetes agent as a secondary container, known as a sidecar, within the same Pod responsible for running the Redis application.
Install and deploy the Site24x7 server monitoring agent as a sidecar of your application. You can view the metrics of the node containing the Site24x7 agent as a sidecar. Follow the YAML script provided below to create your own sidecar and view metrics from your AWS Fargate Pod.
Below is the sample deployment file for a Redis application with the Site24x7 Kubernetes agent as a sidecar. Kindly download the script and save it as a YAML file. Change the device key and deploy it using the following command to get the monitoring started:
- kubectl apply -f site24x7-redis-sidecar-agent.yaml
Here is the
sample YAML file to deploy the Site24x7 Kubernetes agent as a sidecar container of the Pod running a Redis application.
For more information on adding the Site24x7 Kubernetes agent as a sidecar, refer to our help document
here.
Related Articles
How to deploy the Site24x7 PHP agent in a Kubernetes environment?
For PHP version 7.0 and above The PHP agent (PHP version 7.0 and above) can be deployed in a Kubernetes environment using any of the following methods. You can also keep the license keys in a configmap to avoid using them in the deployment files. The ...
Adding APM Insight Node.js agent in Kubernetes via InitContainers
To integrate the APM Insight Node.js agent into your Kubernetes applications using InitContainers, follow the steps given below: Step 1: Create an empty volume that will be used to copy the agent files during the initContainers process. Example: ...
How to uninstall the Site24x7 Kubernetes monitoring agent
Execute the below commands to uninstall the Site24x7 Kubernetes monitoring agent from your cluster: Deletion command for the DaemonSet agent deployed using a YAML file: kubectl delete -f site24x7-agent.yaml or kubectl delete ds,sa site24x7-agent -n ...
Adding APM Insight Java agent in Kubernetes via InitContainers
Step 1: Create a secret for the Site24x7 license key in your application namespace. You can obtain the license key from your site24x7 account by navigating to Admin > Developer > Device Key. Example: kubectl create secret generic app-secret ...
APM Insight agent log paths
Folder path to view One agent logs One agent logs can be found only in the common application folder in Windows (usually under C:\ProgramData from Vista onwards). Check the following folder path in Windows: C:\ProgramData\Site24x7APMOneAgent\Logs ...