Deploy OneAgent Operator on OpenShift (deprecated)

This procedure is deprecated.

The instructions below apply to OpenShift Dedicated as well. For OpenShift Dedicated, you need cluster-admin privileges.

Installation

Find out below how to install and configure OneAgent.

After deployment, you need to restart your pods so OneAgent can inject into them.

Cluster-wide permissions

The following table shows the permissions needed for OneAgent Operator.

Resources accessed
APIs used
Resource names
Nodes
Get/List/Watch
-
Namespaces
Get/List/Watch
-
Secrets
Create
-
Secrets
Get/Update/Delete
dynatrace-oneagent-config, dynatrace-oneagent-pull-secret

Limitations

See Docker limitations for details.

Troubleshoot

Find out how to troubleshoot issues that you may encounter when deploying OneAgent on OpenShift.

Deploy an ActiveGate and connect your Kubernetes API to Dynatrace

Now that you have OneAgent running on your OpenShift nodes, you're able to monitor those nodes, and the applications running in OpenShift. The next step is to deploy an ActiveGate and connect your Kubernetes API to Dynatrace in order to get native Kubernetes metrics, like request limits, and differences in pods requested vs. running pods.
For further instructions see Deploy ActiveGate in OpenShift as a StatefulSet.

Update OneAgent Operator with oc

OneAgent Operator for OpenShift version 3.9+ automatically takes care of the lifecycle of the deployed OneAgents, so you don't need to update OneAgent pods yourself.

Review the release notes of the Operator for any breaking changes of the custom resource.

To update OneAgent Operator, run the following command:

oc apply -f https://github.com/Dynatrace/dynatrace-oneagent-operator/releases/latest/download/openshift.yaml

Update OneAgent Operator with Helm

  1. Update your Helm repositories.

    helm repo update

    Alternative method: add it again. This will overwrite the older version.

  2. Update OneAgent to the latest version.

    Don't omit the --reuse-values flag in the command in order to keep your configuration.

    helm upgrade dynatrace-oneagent-operator dynatrace/\
    dynatrace-oneagent-operator -n dynatrace --reuse-values

Uninstall OneAgent Operator