Download page Install the Cluster Agent with OpenShift OperatorHub Bundle.
Install the Cluster Agent with OpenShift OperatorHub Bundle
This page describes how to install the Cluster Agent using the Splunk AppDynamics OpenShift OperatorHub Bundle which is an alternative to Install the Cluster Agent with Kubernetes CLI.
Splunk AppDynamics OpenShift OperatorHub Bundle is available at RedHat catalog.
Create a namespace for appdynamics in your cluster. If you require to use a custom namespace, you can ignore this step and ensure to use the same namespace during installation. Here, we have used namespace asappdynamics.
kubectl create namespace appdynamics
CODE
Install the Splunk AppDynamics Operator:
Go to your openshift cluster console
Go to Operators > OperatorHub
Search with the appdynamics filter
Click Install
Based on the Account Access Key for the Controller, create the Controller Access Key Secret that the Cluster Agent reports to:
Edit cluster-agent.yaml to set the Splunk 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 Cluster Agent Redhat image for the latest version tag. For additional configuration tasks, see Configure the Cluster Agent.
This example assumes the use of the pre-built Cluster Agent image on RedHat Registry. 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 image tag version that you are installing
image: "docker.io/appdynamics/cluster-agent:<version>"
serviceAccountName: appdynamics-cluster-agent
nsToMonitor: [appdynamics,namespace1,namespace2]
stdoutLogging: "true"
YML
Install the Cluster Agent:
kubectl create -f cluster-agent.yaml
CODE
Check Splunk AppDynamics Operator and Splunk AppDynamics Cluster Agent pods are running. Also, Check Catalogsource, Subscription and Clusterserviceversion are created:
# Operator pod status
kubectl get pods -n appdynamics
# CA pod status
kubectl get pods -n appdynamics
# catalogsources should be created
kubectl get catalogsources -n appdynamics
# subscriptions should be created
kubectl get subscriptions -n appdynamics
# ClusterServiceVersion should be created
kubectl get clusterserviceversion -n appdynamics