diff --git a/charts/nr-k8s-otel-collector/templates/daemonset.yaml b/charts/nr-k8s-otel-collector/templates/daemonset.yaml index 5364c2873b..7d36372845 100644 --- a/charts/nr-k8s-otel-collector/templates/daemonset.yaml +++ b/charts/nr-k8s-otel-collector/templates/daemonset.yaml @@ -162,8 +162,7 @@ spec: - name: final-daemonset-config mountPath: /config {{- if .Values.enable_atp }} - # ATP requires persistent storage to maintain state across restarts (thresholds, history). - # This hostPath volume ensures ATP data survives pod restarts on the same node. + # ATP storage for adaptive telemetry state (thresholds, anomaly history, tracked entities). - name: nrdot-data-storage mountPath: /var/lib/nrdot-collector {{- end }} @@ -185,13 +184,9 @@ spec: configMap: name: {{ include "nrKubernetesOtel.daemonset.configMap.fullname" . }} {{- if .Values.enable_atp }} - # ATP storage volume: Uses hostPath to persist adaptive telemetry processor state. - # DirectoryOrCreate ensures the directory is created if it doesn't exist. - # Data persists across pod restarts but is node-specific (DaemonSet behavior). + # ATP storage volume: Uses emptyDir for temporary pod-local storage. - name: nrdot-data-storage - hostPath: - path: /var/lib/nrdot-collector - type: DirectoryOrCreate + emptyDir: {} {{- end }} {{- with .Values.daemonset.extraVolumes }} {{- toYaml . | nindent 8 }}