From 7ad8fff7c6ba8abfcc9a861a3e50a78d9db3caae Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 7 Sep 2025 07:47:35 -0500 Subject: [PATCH] v-m/vmagent: Use ephemeral storage The `vmagent` needs a place to spool data it has not yet sent to Victoria Metrics, but it doesn't really need to be persistent. As long as all of the `vmagent` nodes _and_ all of the `vminsert` nodes do not go down simultaneously, there shouldn't be any data loss. If they are all down at the same time, there's probably something else going on and lost metrics are the least concerning problem. --- victoria-metrics/vmagent.yaml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/victoria-metrics/vmagent.yaml b/victoria-metrics/vmagent.yaml index 016551b..b26c1e3 100644 --- a/victoria-metrics/vmagent.yaml +++ b/victoria-metrics/vmagent.yaml @@ -136,17 +136,5 @@ spec: - name: config configMap: name: vmagent - volumeClaimTemplates: - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: tmpdata - labels: - app.kubernetes.io/name: vmagent - app.kubernetes.io/component: vmagent - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 4G + - name: tmpdata + emptyDir: {}