Install Infrastructure Visibility with the Kubernetes CLI
This page describes how to install the Machine Agent and Network Agents in a Kubernetes cluster where the Cluster Agent Operator is installed.
The Cluster Agent Operator provides a custom resource definition called InfraViz
. You can use InfraViz
to simplify deploying the Machine and Network Agents as a daemonset
in a Kubernetes cluster. Additionally, you can deploy these agents by creating a daemonset YAML
which does not require the Cluster Agent Operator. For more information, see these examples.
To deploy the Analytics Agent as a daemonset
in a Kubernetes cluster, see Install Agent-Side Components in Kubernetes.
Requirements
Before you begin, verify that you have:
- Installed kubectl >= 1.16
- Cluster Agent >= 21.3.1
- 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
InfraVizConfiguration Settings
To configure Infrastructure Visibility, you can modify these parameters in the infraviz.yaml
file included with the download package. After changing the file, delete and re-create the InfraViz
deployment to ensure the changes are applied.
Parameter | Description | Required/Optional | Default | ||
---|---|---|---|---|---|
account
|
Splunk AppDynamics account name | Required | N/A | ||
appName
| Name of the cluster displayed on the Controller UI as your cluster name. This configuration groups the nodes of the cluster based on the master , worker , infra , worker-infra roles and displays them on the Metric Browser. | Optional | N/A | ||
args
| List of command arguments | Optional | N/A | ||
controllerUrl
|
URL of the Splunk AppDynamics Controller | Required | N/A | ||
enableContainerd
|
Enable containerd visibility on Machine Agent. Specify either true false | Optional | false
| ||
enableContainerHostId
| Flag that determines how container names are derived; specify either true or false . | Required | true
| ||
enableMasters
| By default, only Worker nodes are monitored. When set to true , Server Visibility is provided for Master nodes. For managed Kubernetes providers, the flag has no effect because the Master plane is not accessible. | Optional | false
| ||
enableServerViz
| Enable Server Visibility | Required | false | ||
enableDockerViz
| Enable Docker Visibility | Required | false
| ||
env
| List environment variables | Optional | N/A | ||
eventServiceUrl
| Event Service Endpoint | Optional | N/A | ||
globalAccount
| Global account name | Optional | N/A | ||
image
| Retrieves the most recent version of the Machine Agent image. | Optional | appdynamics/machine-agent:latest
| ||
imagePullPolicy
| The image pull policy for the InfraViz pod. | Optional |
imagePullPolicy: Always | ||
imagePullSecret
| Name of the pull secret image | Optional | N/A | ||
logLevel
| Level of logging verbosity. Valid options are: info or debug . | Optional | info
| ||
metricsLimit
| Maximum number of metrics that the Machine Agent sends to the Controller. | Optional | N/A | ||
netVizImage
| Retrieves the most recent version of Network Agent image. | Optional | appdynamics/machine-agent-netviz:latest
| ||
netVizPort
| When > 0, the Network Agent is deployed in a sidecar with the Machine Agent. By default, the Network Visibility Agent works with port 3892 . | Optional | 3892
| ||
netVizSecurityContext |
You can include the following parameters under securityContext:
This sets the appropriate file permission on the agent artifacts. This value is applied to all the instrumented resources. Add this parameter, if you require to override the default value of | Optional | N/A | ||
This sets the appropriate file permission on the agent artifacts. This value is applied to all the instrumented resources. Add this parameter, if you require to override the default value of | Optional | N/A | |||
If you do not set this parameter, the helm uses the default value as true. Note:
| Optional | N/A | |||
Note:
| Optional |
["NET_ADMIN","NET_RAW"] Note: The default values are not overridden by the specified values. When you specify a value for capabilities, the value is considered along with the default values.
| |||
If you do not set this parameter, the helm uses the default value as true. Note:
| Optional | N/A | |||
Note: This parameter is currently available for Deployment and DeploymentConfig mode.
| Optional | N/A | |||
Note:
| Optional | N/A | |||
If the value is true, the Kubelet validates the image at runtime to ensure that the container fails to start when run as root. If this parameter is not specified or if the value is false, there is no validation. Note: This parameter is currently available for Deployment and DeploymentConfig mode.
| Optional | N/A | |||
Note:
| Optional | N/A | |||
Note:
| Optional | N/A | |||
Note:
| Optional | N/A | |||
nodeSelector
| OS specific label that identifies nodes for scheduling of the daemonset pods. | Optional | linux
| ||
overrideVolumeMounts | The list of volumeMounts. | Optional |
overrideVolumeMounts: - proc - sys - etc | ||
priorityClassName | Name of the priority class that determines priority when a pod needs to be evicted. | Optional | N/A | ||
propertyBag
| String with any other Machine Agent parameters | Optional | N/A | ||
proxyUrl
| URL of the proxy server (protocol://domain:port ) | Optional | N/A | ||
proxyUser
| Proxy user credentials (user@password ) | Optional | N/A | ||
resources
| Definitions of resources and limits for the Machine Agent |
Optional | N/A | ||
resourcesNetViz
| Set resources for the Network Visibility (NetViz) container | Optional |
Request
Limit
| ||
runAsUser
|
Note: This parameter is deprecated. We recommend that you use the
runAsUser child parameter under the parameter. | Optional |
s | ||
runAsGroup
| The GID (Group ID) to run the entry point of the container process. If you do not specify the ID, this uses the UID specified in the image,
Note: This parameter is deprecated. We recommend that you use the
runAsGroup child parameter under the parameter.. | Optional | GID: 1001 Username: appdynamics
| ||
Note:
For OpenShift version > For example, if you want to use You can include the following parameters under securityContext:
This sets the appropriate file permission on the agent artifacts. This value is applied to all the instrumented resources. Add this parameter, if you require to override the default value of |
You can include the following parameters under securityContext:
This sets the appropriate file permission on the agent artifacts. This value is applied to all the instrumented resources. Add this parameter, if you require to override the default value of | Optional | NA | ||
This sets the appropriate file permission on the agent artifacts. This value is applied to all the instrumented resources. Add this parameter, if you require to override the default value of | Optional | NA | |||
If you do not set this parameter, the helm uses the default value as true. Note:
| Optional | true | |||
Note:
| Optional | NA | |||
If you do not set this parameter, the helm uses the default value as true. Note:
| Optional | true | |||
Note: This parameter is currently available for Deployment and DeploymentConfig mode.
| Optional | NA | |||
Note:
| Optional | NA | |||
If the value is true, the Kubelet validates the image at runtime to ensure that the container fails to start when run as root. If this parameter is not specified or if the value is false, there is no validation. Note: This parameter is currently available for Deployment and DeploymentConfig mode.
| Optional | NA | |||
Note:
| Optional | NA | |||
Note:
| Optional | NA | |||
Note:
| Optional | NA | |||
stdoutLogging
| Determines if logs are saved to a file or redirected to the Console. | Optional | false
| ||
tolerations
| List of tolerations based on the taints that are associated with nodes. | Optional | N/A | ||
uniqueHostId
|
Unique host ID in Splunk AppDynamics. Valid options are: spec.nodeName status.hostIP | Optional | spec.nodeName
|