apiVersion: dynatrace.com/v1alpha1 kind: OneAgent metadata: # a descriptive name for this object. # all created child objects will be based on it. name: oneagent namespace: dynatrace spec: # dynatrace api url including `/api` path at the end # either set ENVIRONMENTID to the proper tenant id or change the apiUrl as a whole, e.q. for Managed apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api # disable certificate validation checks for installer download and API communication skipCertCheck: false # name of secret holding `apiToken` and `paasToken` # if unset, name of custom resource is used tokens: "" # node selector to control the selection of nodes (optional) nodeSelector: {} # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ (optional) tolerations: - effect: NoSchedule key: node-role.kubernetes.io/master operator: Exists # oneagent installer image (optional) # certified image from Red Hat Container Catalog for use on OpenShift: registry.connect.redhat.com/dynatrace/oneagent # defaults to docker.io/dynatrace/oneagent image: "" # arguments to oneagent installer (optional) # https://www.dynatrace.com/support/help/shortlink/oneagent-docker#limitations args: - APP_LOG_CONTENT_ACCESS=1 # environment variables for oneagent (optional) env: [] # resource settings for oneagent pods (optional) # consumption of oneagent heavily depends on the workload to monitor # please adjust values accordingly #resources: # requests: # cpu: 100m # memory: 512Mi # limits: # cpu: 300m # memory: 1.5Gi # priority class to assign to oneagent pods (optional) # https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ #priorityClassName: PRIORITYCLASS # disables automatic restarts of oneagent pods in case a new version is available #disableAgentUpdate: false # when enabled, and if Istio is installed on the Kubernetes environment, then the Operator will create the corresponding # VirtualService and ServiceEntries objects to allow access to the Dynatrace cluster from the agent. #enableIstio: false # Defines the name of the service account used by the pods #serviceAccountName: dynatrace-oneagent