diff --git a/kubernetes/namespaces/monitoring/prometheus/deployment.yaml b/kubernetes/namespaces/monitoring/prometheus/deployment.yaml index 30716361..e13f92fe 100644 --- a/kubernetes/namespaces/monitoring/prometheus/deployment.yaml +++ b/kubernetes/namespaces/monitoring/prometheus/deployment.yaml @@ -56,6 +56,8 @@ spec: mountPath: /opt/monitor/prom-alerts - name: reloader-hook mountPath: /opt/pydis + - name: reloader-tmpfs + mountPath: /tmp env: - name: INOTIFY_HOOK_SCRIPT value: /opt/pydis/hook.sh @@ -65,6 +67,9 @@ spec: value: delete - name: INOTIFY_HOOK_DELAY value: "5" + envFrom: + - secretRef: + name: prometheus-reloader-env restartPolicy: Always securityContext: fsGroup: 2000 @@ -84,3 +89,7 @@ spec: configMap: name: prometheus-reloader-script defaultMode: 0777 + - name: reloader-tmpfs + emptyDir: + medium: Memory + sizeLimit: 50Mi