+++ title = "Deployment" chapter = false weight = 1 hidden = true +++ ![image](/images/operate/ad_team_cloudops.png) ## Deploy the Cluster Agent to EKS It's time to deploy the Cluster Agent to the EKS cluster. Let's start by looking at the script that deploys the Cluster Agent to the cluster using the commands below in your Cloud9 terminal: ``` cd /opt/appdynamics/workshopuser cat -n deployClusterAgent.sh ``` The script is performing the following actions: - Changing to the directory where the agent YAML files reside - Creates a namespace for the agent - Deploys the Cluster Agent Operator - Creates the Access Key for the agent - Deploys the Cluster Agent - Deploys the Kubernetes Metric Server The script uses **kubectl** to perform the deployment. Take a quick look at the **cluster-agent.yaml** file using the commands below: ``` cd /opt/appdynamics/workshopuser/post-mod-kube-ca cat -n cluster-agent.yaml ``` ![image](/images/operate/kube-config-01.png) The setup script you executed in the workshop setup section, auto-populated the agent to controller configuration properties for you. **How does** the Cluster Agent know how to connect to the controller **?** - on **line 8 - 9** we are providing the controller URL and the account name **Where do we** reference the Docker image of the Cluster Agent **?** - on **line 11** we are providing the reference to the pre-built public image that can be found **here** You can proceed to deploy the Cluster Agent using the commands below: ``` cd /opt/appdynamics/workshopuser ./deployClusterAgent.sh ``` The image below shows what the output looks like for Cluster Agent deployment. ![image](/images/operate/kube-deploy-01.png) You can read more about deploying the Cluster Agent **here** ## Next In the next section we'll look at how you can **unlock the power of machine learning and AI** to deliver world-class user experience **with AppDynamics Cognition Engine**.