Configure read-only CSI volumes injections
Dynatrace Operator version 0.12.0+
The Dynatrace CSI driver installed on the Kubernetes cluster.
DynaKube configured to use the CSI driver. For example, ensure that
applicationMonitoringis enabled with
Enable feature flag
To enable the injection of read-only CSI volumes, set the
feature.dynatrace.com/injection-readonly-volume feature flag to
true. When the feature flag is enabled, the injected CSI volume becomes read-only.
1apiVersion: dynatrace.com/v1beta12kind: DynaKube3metadata:4 annotations:5 feature.dynatrace.com/injection-readonly-volume: "true"
This enables usage of the CSI driver even on BottleRocket platforms where host monitoring OneAgents don't work. To accommodate this feature, extra ephemeral storage is added to allow the injected OneAgent to store logs and additional configurations.
A drawback to this approach is that if your pods terminate unexpectedly or are otherwise deleted, any logs stored in ephemeral storage will be lost.