1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
prometheus-operator/contrib/prometheus-config-reloader/examples/prometheus-config-reloader.yaml

52 lines
1.2 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config-reloader-example
data:
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prometheus-config-reloader
spec:
replicas: 1
template:
metadata:
labels:
app: prometheus-config-reloader
spec:
volumes:
- name: rules
emptyDir: {}
- name: config
configMap:
name: prometheus-config-reloader-example
containers:
- name: ubuntu
image: ubuntu
command: ["sleep", "3600"]
volumeMounts:
- name: rules
mountPath: /etc/prometheus/rules
readOnly: true
- name: prometheus-config-reloader
image: quay.io/coreos/prometheus-config-reloader:v0.0.4
args:
- '-config-volume-dir=/etc/prometheus/config'
- '-rule-volume-dir=/etc/prometheus/rules'
- '-reload-url=http://localhost:9090/-/reload'
resources:
requests:
memory: "16Mi"
cpu: "50m"
limits:
memory: "32Mi"
cpu: "100m"
volumeMounts:
- name: config
readOnly: true
mountPath: /etc/prometheus/config
- name: rules
mountPath: /etc/prometheus/rules