Configure failure policy
Dynatrace Operator version 0.11.0+
The failure policy determines what should happen when OneAgent injection fails for a particular pod in a Kubernetes cluster. By default, the failure policy is set to
silent. You can override the failure policy for all injected pods that match the DynaKube by setting the
feature.dynatrace.com/injection-failure-policy to one of the following values.
silent—if OneAgent injection fails for a particular pod, the pod will continue to run without monitoring.
fail—if OneAgent injection fails for a particular pod, the pod will not start, and the injection failure will be treated as an error.
1apiVersion: dynatrace.com/v1beta12kind: DynaKube3metadata:4 annotations:5 feature.dynatrace.com/injection-failure-policy: [fail|silent]