In order to deploy OneAgent on Kubernetes 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://raw.githubusercontent.com/Dynatrace/dynatrace-oneagent-operator/master/deploy/kubernetes.yaml
curl -s https://raw.githubusercontent.com/Dynatrace/dynatrace-oneagent-operator/master/deploy/openshift.yaml
Pull the Operator container image and push it to a local registry.
docker pull quay.io/dynatrace/dynatrace-oneagent-operator:snapshot
docker pull registry.connect.redhat.com/dynatrace/dynatrace-oneagent-operator
Pull the OneAgent container image and push it to a local registry.
docker pull docker.io/dynatrace/oneagent
docker pull registry.connect.redhat.com/dynatrace/oneagent
Download the custom resource file.
LATEST_RELEASE=$(curl -s https://api.github.com/repos/dynatrace/dynatrace-oneagent-operator/releases/latest | grep tag_name | cut -d '"' -f 4) $ 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 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>