Download PDF
Download page Install Infrastructure Visibility with OpenShift OperatorHub Bundle.
Install Infrastructure Visibility with OpenShift OperatorHub Bundle
This page describes how to install the Infraviz (Machine Agent and Network Agent) using AppDynamics Openshift Operatorhub Bundle which is an alternative to Install Infrastructure Visibility with Kubernetes CLI.
AppDynamics OpenShift OperatorHub Bundle is available at RedHat Catalog.
Requirements
Before you begin, verify that you have:
Openshift Cluster environment
- Met these requirements: Cluster Agent Requirements and Supported Environments.
- If Server Visibility is required, sufficient Server Visibility licenses based on the number of worker nodes in your cluster.
- Permissions to view servers in the AppDynamics Controller.
Installation Procedure
Create a namespace for appdynamics in your cluster:
kubectl create namespace appdynamicsBASHInstall AppDynamics Operator:
- Go to your openshift cluster console
Go to Operators > OperatorHub
Search with the
appdynamicsfilterClick Install
Update the
infraviz.yamlfile to set thecontrollerUrl,account, andglobalAccountvalues based on the information from the Controller's License page.
To enable Server Visibility, setenableServerViztotrue(shown in theinfraviz.yamlconfiguration example).
To deploy a Machine Agent without Server Visibility enabled, setenableServerViztofalse.infraviz.yaml Configuration File with Server Visibility Enabled
apiVersion: v1 kind: ServiceAccount metadata: name: appdynamics-infraviz namespace: appdynamics --- apiVersion: cluster.appdynamics.com/v1alpha1 kind: InfraViz metadata: name: appdynamics-infraviz namespace: appdynamics spec: controllerUrl: "https://mycontroller.saas.appdynamics.com" image: "docker.io/appdynamics/machine-agent:latest" account: "<your-account-name>" globalAccount: "<your-global-account-name>" enableContainerHostId: true enableServerViz: true resources: limits: cpu: 500m memory: "1G" requests: cpu: 200m memory: "800M"YMLThe
infraviz.yamlconfiguration file example deploys adaemonsetthat runs a single pod per node in the cluster. Each pod runs a single container from where the Machine Agent, or Server Visibility Agent runs.To enable the Network Visibility Agent to run in a second container in the same pod, add the
netVizImageandnetVizPortkeys and values as shown in this configuration file example:infraviz.yaml Configuration File with Second Container in a Single Pod
apiVersion: v1 kind: ServiceAccount metadata: name: appdynamics-infraviz namespace: appdynamics --- apiVersion: cluster.appdynamics.com/v1alpha1 kind: InfraViz metadata: name: appdynamics-infraviz namespace: appdynamics spec: controllerUrl: "https://mycontroller.saas.appdynamics.com" image: "docker.io/appdynamics/machine-agent:latest" account: "<your-account-name>" enableContainerHostId: true enableServerViz: true netVizImage: appdynamics/machine-agent-netviz:latest netVizPort: 3892 resources: limits: cpu: 500m memory: "1G" requests: cpu: 200m memory: "800M"YMLUse
kubectlto deployinfraviz.yamlFor environments where Kubernetes
PodSecurityPoliciesblock certain pod security context configuration, such as privileged pods, you must deploy theinfraviz-pod-security-policy.yamlbefore editing theinfraviz.yamlfile.For environments where OpenShift
SecurityContextConstraintsblock certain pod security context configuration, such as privileged pods, you must deploy theinfraviz-security-context-constraint-openshift.yamlbefore editing theinfraviz.yamlfile.kubectl create -f infraviz.yamlBASHkubectl create -f infraviz-pod-security-policy.yaml kubectl create -f infraviz.yamlBASHkubectl create -f infraviz-security-context-constraint-openshift.yaml kubectl create -f infraviz.yamlBASHCheck appdynamics-operator and appdynamics-infraviz pods are running. Also, Check Catalogsource, Subscription and Clusterserviceversion are created:
# Appdynamics Operator pod status kubectl get pods -n appdynamics # Infraviz 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 appdynamicsYMLTo uninstall Infraviz and AppDynamics Operator:
Delete the Infraviz:
kubectl delete -f infraviz.yamlCODEDelete AppDynamics Operator:
Go to your OpenShift cluster console
Go to Operators > Installed Operators
Click on AppDynamics Operator for Kubernetes > Actions > Uninstall Operator
Check Infraviz Configuration Settings here.