on 30 Nov 2023 01:40 PM
cloudNativeFullStack
applicationMonitoring
Dynatrace Operator version 0.10.0+
If there's DiskPressure
on your nodes, you can configure the CSI driver log garbage collection interval to lower the storage usage of the CSI driver. The default value of keeping logs before they are deleted from the file system is 7
(days). To edit this timeframe, select one of the options below, depending on your deployment mode.
kubernetes-csi.yaml
, openshift-csi.yaml
), by replacing the placeholders (<your_value>
) with your value.
apiVersion: apps/v1
kind: DaemonSet
...
spec:
...
template:
...
spec:
...
containers:
...
- name: provisioner
...
env:
- name: MAX_UNMOUNTED_VOLUME_AGE
value: <your_value> # defined in days, must be a plain number. `0` means logs are immediately deleted. If not set, defaults to `7`.
Edit values.yaml
to set the maxUnmountedVolumeAge
parameter under the csidriver
section.
csidriver:
enabled: true
...
maxUnmountedVolumeAge: "" # defined in days, must be a plain number. `0` means logs are immediately deleted. If not set, defaults to `7`.