This page describes how to install the Infraviz (Machine Agent and Network Agent) using Splunk AppDynamics Openshift Operatorhub Bundle which is an alternative to Install Infrastructure Visibility with Kubernetes CLI.
Splunk 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 Splunk AppDynamics Controller.
Installation Procedure
Create a namespace for
appdynamics
in your cluster:kubectl create namespace appdynamics
Install Splunk AppDynamics Operator:
- Go to your openshift cluster console
Go to Operators > OperatorHub
Search with the
appdynamics
filterClick Install
Update the
infraviz.yaml
file to set thecontrollerUrl
,account
, andglobalAccount
values based on the information from the Controller's License page.
To enable Server Visibility, setenableServerViz
totrue
(shown in theinfraviz.yaml
configuration example).
To deploy a Machine Agent without Server Visibility enabled, setenableServerViz
tofalse
.infraviz.yaml Configuration File with Server Visibility EnabledapiVersion: 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"
The
infraviz.yaml
configuration file example deploys adaemonset
that 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
netVizImage
andnetVizPort
keys and values as shown in this configuration file example:infraviz.yaml Configuration File with Second Container in a Single PodapiVersion: 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"
Use
kubectl
to deployinfraviz.yaml
For environments where Kubernetes
PodSecurityPolicies
block certain pod security context configuration, such as privileged pods, you must deploy theinfraviz-pod-security-policy.yaml
before editing theinfraviz.yaml
file.For environments where OpenShift
SecurityContextConstraints
block certain pod security context configuration, such as privileged pods, you must deploy theinfraviz-security-context-constraint-openshift.yaml
before editing theinfraviz.yaml
file.kubectl create -f infraviz.yaml
kubectl create -f infraviz-pod-security-policy.yaml kubectl create -f infraviz.yaml
kubectl create -f infraviz-security-context-constraint-openshift.yaml kubectl create -f infraviz.yaml
Check that the operator and infraviz pods are running. Also, Check Catalogsource, Subscription and Clusterserviceversion are created:
# Cisco 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 appdynamics
To uninstall Infraviz and Splunk AppDynamics Operator:
Delete the Infraviz:
kubectl delete -f infraviz.yaml
Delete Splunk AppDynamics Operator:
Go to your OpenShift cluster console
Go to Operators > Installed Operators
Click Splunk AppDynamics Operator for Kubernetes > Actions > Uninstall Operator
Check Infraviz Configuration Settings here.