-
Notifications
You must be signed in to change notification settings - Fork 1
/
monitoring.yaml
executable file
·39 lines (39 loc) · 1.16 KB
/
monitoring.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: devops
name: prometheus-update-lma
spec:
replicas: 1
template:
metadata:
labels:
cluster: prometheus-update-lma
spec:
terminationGracePeriodSeconds: 10
containers:
- name: prometheus-update-lma
image: ecr.demo.com/demo/devops/monitoring-base:latest
command:
- "/bin/sh"
- "-c"
- >
set -x;
chmod 400 /tmp/secret/id_rsa.demo;
python /automation/change_on_prometheus_repo/source/main_prometheus_change.py;
sleep 60;
curl -XPOST http://prometheus-monitoring:9090/-/reload;
curl -XPOST http://prometheus-alertmanager:9093/-/reload;
sleep infinity
volumeMounts:
- name: monitoring-volume
mountPath: /mnt
- name: demo-ssh-config-volume
mountPath: "/tmp/secret"
volumes:
- name: monitoring-volume
persistentVolumeClaim:
claimName: monitoring-nfs-pvc # update claim to standard name
- name: demo-ssh-config-volume
secret:
secretName: demo-ssh-config