From 592b2ec9e294e30266e3504da936df866cb52217 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sun, 8 Nov 2026 17:53:23 +1100 Subject: [PATCH] Mount per-pod emptyDir for puppetdb logs (#576) Both puppetdb replicas write logback logs to the same logs/ dir on the shared RWX PVC. Concurrent rollovers race on compression and leave orphaned .tmp files that maxHistory never removes, eventually filling the volume quota and failing /pdb/cmd/v1 with "Disk quota exceeded". - mount a per-pod emptyDir (sizeLimit 512Mi) at /opt/puppetlabs/server/data/puppetdb/logs Reviewed-on: https://git.unkin.net/unkin/argocd-apps/pulls/576 Co-authored-by: unkin-agent Co-committed-by: unkin-agent --- apps/base/puppet/deployment_puppetdb.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/base/puppet/deployment_puppetdb.yaml b/apps/base/puppet/deployment_puppetdb.yaml index f63055d..d094432 100644 --- a/apps/base/puppet/deployment_puppetdb.yaml +++ b/apps/base/puppet/deployment_puppetdb.yaml @@ -93,6 +93,8 @@ spec: - mountPath: /opt/puppetlabs/server/data/puppetdb/stockpile name: puppetdb-storage subPathExpr: stockpile/$(POD_NAME) + - mountPath: /opt/puppetlabs/server/data/puppetdb/logs + name: puppetdb-logs - mountPath: /etc/puppetlabs/puppetdb/conf.d/read-database.conf name: puppetdb-read-database-conf subPath: read-database.conf @@ -191,6 +193,9 @@ spec: - name: puppetdb-storage persistentVolumeClaim: claimName: puppetserver-puppetdb-claim + - name: puppetdb-logs + emptyDir: + sizeLimit: 512Mi - name: puppetdb-read-database-conf configMap: name: puppetdb-read-database-conf