This page will help you to understand and configure the Kubernetes Custom Resource "DynaKube", enabling you to optimize your Dynatrace Operator setup according to your specific requirements.
The following table lists the minimum required Dynatrace Operator versions for each DynaKube API version.
apiUrl parameter is required and immutable. Once set, it cannot be modified in an existing DynaKube.
All other parameters are optional.
Parameter
Description
Default value
Data type
apiUrl
Dynatrace apiUrl, including the /api path at the end. - For SaaS, set YOUR_ENVIRONMENT_ID to your environment ID. - For Managed, change the apiUrl address. For instructions on how to determine the environment ID and how to configure the apiUrl address, see Environment ID
-
string
customPullSecret
Defines a custom pull secret in case you use a private registry when pulling images from the Dynatrace environment. To define a custom pull secret and learn about the expected behavior, see Configure customPullSecret.
-
string
dynatraceApiRequestThreshold
Minimum minutes between Dynatrace API requests.
15
integer
enableIstio
When enabled, and if Istio is installed on the Kubernetes environment, Dynatrace Operator will create the corresponding VirtualService and ServiceEntry objects to allow access to the Dynatrace Cluster from the OneAgent or ActiveGate. Disabled by default.
-
boolean
networkZone
Sets a network zone for the OneAgent and ActiveGate Pods.
-
string
proxy
Set custom proxy settings either directly or from a secret with the field proxy. Applies to Dynatrace Operator, ActiveGate, and OneAgents.
-
DynaKubeProxy
skipCertCheck
Disable certificate check for the connection between Dynatrace Operator and the Dynatrace Cluster. Set to true if you want to skip certification validation checks.
-
boolean
tokens
Name of the secret holding the tokens used for connecting to Dynatrace.
-
string
trustedCAs
Adds custom RootCAs from a configmap. The key to the data must be certs. This applies to Dynatrace Operator, OneAgent, and ActiveGate.
-
string
.spec.oneAgent
Parameter
Description
Default value
Data type
hostGroup
Specify the name of the group to which you want to assign the host. This method is preferred over the now obsolete --set-host-group argument. If both settings are used, this field takes precedence over the --set-host-group argument.
string
.spec.oneAgent.cloudNativeFullStack
All parameters are optional.
recommended
Parameter
Description
Default value
Data type
annotations
Add custom OneAgent annotations.
map[string]string
args
Set additional arguments to the OneAgent installer. For available options, see Linux custom installation. For the list of limitations, see Limitations.
Specify the node selector that controls on which nodes OneAgent will be deployed.
map[string]string
oneAgentResources
Resource settings for OneAgent container. Consumption of the OneAgent heavily depends on the workload to monitor. You can use the default settings in the CR. resource.requests shows the values needed to run; resource.limits shows the maximum limits for the Pod.
ResourceRequirements
priorityClassName
Assign a priority class to the OneAgent Pods. By default, no class is set. For details, see Pod Priority and Preemption.
string
secCompProfile
The SecComp Profile that will be configured in order to run in secure computing mode.
-
string
storageHostPath
Writeable directory on the host filesystem where OneAgent configurations will be stored.
-
string
tolerations
Tolerations to include with the OneAgent DaemonSet. For details, see Taints and Tolerations.
[]Toleration
version
The OneAgent version to be used for host monitoring OneAgents running in the dedicated Pod. This setting doesn't affect the OneAgent version used for application monitoring.
The latest version is used by default.
string
.spec.oneAgent.classicFullStack
All parameters are optional.
Parameter
Description
Default value
Data type
annotations
Add custom OneAgent annotations.
map[string]string
args
Set additional arguments to the OneAgent installer. For available options, see Linux custom installation. For the list of limitations, see Limitations.
Set the DNS Policy for OneAgent Pods. For details, see Pods DNS Policy.
ClusterFirstWithHostNet
string
env
Set additional environment variables for the OneAgent Pods.
[]EnvVar
image
Use a custom OneAgent Docker image. Defaults to the image from the Dynatrace cluster.
Name of the image.
string
labels
Your defined labels for OneAgent Pods in order to structure workloads as desired.
map[string]string
nodeSelector
Specify the node selector that controls on which nodes OneAgent will be deployed.
map[string]string
oneAgentResources
Resource settings for OneAgent container. Consumption of the OneAgent heavily depends on the workload to monitor. You can use the default settings in the CR. resource.requests shows the values needed to run; resource.limits shows the maximum limits for the Pod.
ResourceRequirements
priorityClassName
Assign a priority class to the OneAgent Pods. By default, no class is set. For details, see Pod Priority and Preemption.
string
secCompProfile
The SecComp Profile that will be configured in order to run in secure computing mode.
-
string
storageHostPath
Writeable directory on the host filesystem where OneAgent configurations will be stored.
-
string
tolerations
Tolerations to include with the OneAgent DaemonSet. For details, see Taints and Tolerations.
[]Toleration
version
The OneAgent version to be used.
The latest version is used by default.
string
.spec.oneAgent.applicationMonitoring
All parameters are optional.
Parameter
Description
Default value
Data type
codeModulesImage
The OneAgent image that is used to inject into Pods
Set additional arguments to the OneAgent installer. For available options, see Linux custom installation. For the list of limitations, see Limitations.
Set the DNS Policy for OneAgent Pods. For details, see Pods DNS Policy.
ClusterFirstWithHostNet
string
env
Set additional environment variables for the OneAgent Pods.
[]EnvVar
image
Use a custom OneAgent Docker image.
The image from the Dynatrace cluster.
string
labels
Your defined labels for OneAgent Pods in order to structure workloads as desired.
map[string]string
nodeSelector
Specify the node selector that controls on which nodes OneAgent will be deployed.
map[string]string
oneAgentResources
Resource settings for OneAgent container. Consumption of the OneAgent heavily depends on the workload to monitor. You can use the default settings in the CR. resource.requests shows the values needed to run; resource.limits shows the maximum limits for the Pod.
ResourceRequirements
priorityClassName
Assign a priority class to the OneAgent Pods. By default, no class is set. For details, see Pod Priority and Preemption.
string
secCompProfile
The SecComp Profile that will be configured in order to run in secure computing mode.
-
string
storageHostPath
Writeable directory on the host filesystem where OneAgent configurations will be stored.
-
string
tolerations
Tolerations to include with the OneAgent DaemonSet. For details, see Taints and Tolerations.
[]Toleration
version
The OneAgent version to be used.
The latest version is used by default.
string
.spec.activeGate
capabilities parameter is required.
resources and group parameters are recommended.
All other parameters are optional.
Parameter
Description
Default value
Data type
annotations
Add custom ActiveGate annotations.
map[string]string
capabilities
Defines the ActiveGate pod capabilities: what functionality should be enabled. Possible values: - routing enables OneAgent routing. - kubernetes-monitoring enables Kubernetes API monitoring. - metrics-ingest1 opens the metrics ingest endpoint on the DynaKube ActiveGate and redirects all pods to it. - dynatrace-api1 enables calling the Dynatrace API via ActiveGate. - debugging enables the Live Debugging module in ActiveGate.
string
customProperties
Add a custom properties file by providing it as a value or by referencing it from a secret. When referencing a custom properties file from a secret, make sure that the key is named customProperties. See How to add a custom properties file for details.
string
dnsPolicy
Set the DNS policy for ActiveGate pods.
ClusterFirstWithHostNet
string
env
Set additional environment variables for the ActiveGate pods.
Use a custom ActiveGate image. Defaults to the latest ActiveGate image from the Dynatrace cluster.
string
labels
Your defined labels for ActiveGate pods in order to structure workloads as desired.
map[string]string
nodeSelector
Specify the node selector that controls on which nodes ActiveGate will be deployed.
map[string]string
priorityClassName
Assign a priority class to the ActiveGate pods. By default, no class is set. For details, see Pod Priority and Preemption.
string
replicas
Number of replicas of ActiveGate pods.
1
int
resources
Resource settings for ActiveGate container. Consumption of the ActiveGate heavily depends on the workload to monitor; adjust values accordingly.
ResourceRequirements
terminationGracePeriodSeconds
Configures the terminationGracePeriodSeconds parameter of the ActiveGate pod. Kubernetes defaults and rules apply.
int
tlsSecretName
Name of a secret containing ActiveGate TLS certificate, key, and password. If not set, a self-signed certificate is used. For details, see How to add a custom certificate for ActiveGate.
If specified, indicates the Pod's priority. Name must be defined by creating a PriorityClass object wiht that name. If not specified the setting will be removed from the DaemonSet.
string
resources
Define resource requests and limits for Node Configuration Collector Pods.
ResourceRequirements
nodeAffinity
Define the nodeAffinity for the DaemonSet of the Node Configuration Collector
NodeAffinity
tolerations
Set tolerations for the Node Configuration Collector Pods. For details, see Taints and Tolerations.
[]Toleration
args
Set additional arguments for the Node Configuration Collector main container.
[]string
env
Set additional environment variables for the Node Configuration Collector main container.
PVC for the Extension Execution Controller. If not specified a default PVC is used.
PersistentVolumeClaim
labels
Lables applied to Extension Execution Controller Pod.
map[string]string
annotations
Annotations applied to Extension Execution Controller Pod.
map[string]string
tlsRefName
Secret containing a TLS certificate for communication between Extension Execution Controller and OpenTelemetry Collector.
string
customConfig
ConfigMap holding a custom Extension Execution Controller configuration.
string
customExtensionCertificates
Secret holding certificates that have been used to sign custom extensions. Needed for extensions signature validation by Extension Execution Controller.
string
resources
Resource settings for Extension Execution Controller Pod.
ResourceRequirements
tolerations
Tolerations for Extension Execution Controller Pod. For details, see Taints and Tolerations.
[]Toleration
topologySpreadConstraints
Topology spread constraints for Extension Execution Controller Pod.
[]corev1.TopologySpreadConstraint
useEphemeralVolume
Indicates whether to use ephemeral volume for storage.