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.
Note: In case you use a private registry to get your images, don't forget to put the corresponding pull secrets to the
dynatrace-oneagent-operator service accounts.
Components to be retrieved online
Download the operator
curl -s https://github.com/Dynatrace/dynatrace-oneagent-operator/releases/latest/download/kubernetes.yaml
Pull the Operator container image and push it to a local registry.
docker pull docker.io/dynatrace/dynatrace-oneagent-operator:v0.7.1
Note: Replace the version in the example above with the one used in the
Pull the OneAgent container image and push it to a local registry.
docker pull docker.io/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.