Edit cluster-agent.yaml to set the AppDynamics Controller details for the Cluster Agent to report to. a. Set the nsToMonitor or nsToMonitorRegex options to include the namespaces you want to monitor. b. Set the image tag to the version you are installing. Refer to Docker Hub for the latest version tag. For additional configuration tasks, such as configuring SSL for on-premises Controllers, proxy support, or pull secrets, see Configure the Cluster Agent.
This example assumes the use of the pre-built Cluster Agent image on Docker Hub. See Cluster Agent Container Image to build your own image.
apiVersion: cluster.appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
name: k8s-cluster-agent
namespace: appdynamics
spec:
appName: "dev-cluster"
controllerUrl: "http://mycontroller.com:8080"
account: "my-account"
# docker image info where, <version> is the version that you are installing
image: "docker.io/appdynamics/cluster-agent:<version>"
serviceAccountName: appdynamics-cluster-agent
nsToMonitor: [appdynamics,namespace1,namespace2]
stdoutLogging: "true"