Skip to content

Commit

Permalink
Update Prometheus deployment with a tmpfs for the reloader
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 authored and jchristgit committed Jun 10, 2024
1 parent 08234c7 commit 3b4613e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kubernetes/namespaces/monitoring/prometheus/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -65,6 +67,9 @@ spec:
value: delete
- name: INOTIFY_HOOK_DELAY
value: "5"
envFrom:
- secretRef:
name: prometheus-reloader-env
restartPolicy: Always
securityContext:
fsGroup: 2000
Expand All @@ -84,3 +89,7 @@ spec:
configMap:
name: prometheus-reloader-script
defaultMode: 0777
- name: reloader-tmpfs
emptyDir:
medium: Memory
sizeLimit: 50Mi

0 comments on commit 3b4613e

Please sign in to comment.