cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
darynakovyrina
Dynatrace Mentor
Dynatrace Mentor

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.

Spoiler
Be careful when setting this value; you might need the logs to investigate problems.

Manual (kubectl/oc)

  1. Edit the manifests of the CSI driver daemonset (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`.
            
  2. Apply the changes.

helm

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`.
Version history
Last update:
‎30 Nov 2023 01:40 PM
Updated by: