In order to deploy OneAgent on OpenShift in an air-gapped (sealed/offline) environment you need to download certain assets first. The following instructions are meant to help you locate and download these assets, after which you can connect to your sealed environment and upload them to a referenceable location.
Components to be retrieved online
Download the operator
curl -s https://github.com/Dynatrace/dynatrace-oneagent-operator/releases/latest/download/openshift.yaml
Pull the Operator container image and push it to a local registry.
docker pull registry.connect.redhat.com/dynatrace/dynatrace-oneagent-operator
Pull the OneAgent container image and push it to a local registry.
docker pull registry.connect.redhat.com/dynatrace/oneagent
Download the custom resource file.
$ curl -o cr.yaml https://raw.githubusercontent.com/Dynatrace/dynatrace-oneagent-operator/master/deploy/cr.yaml
Configure OneAgent installer script in the custom resource file
Note: This connection will also be used for metrics communication.
Define the ActiveGate from which you'll download the OneAGent installer script, as indicated below.
||Set by default to
Define the proxy as OneAgent installation parameter
--set-proxy=<proxy> (option available since
OneAgent version 1.185
) and the environment variable
Note: Make sure to replace
<proxy> with your own value.
spec: args: - --set-proxy=<proxy> env: - name: https_proxy value: <proxy>
OneAgent Operator version 0.7.1
, you can just use the
proxy field in the OneAgent custom resource.