-
Notifications
You must be signed in to change notification settings - Fork 23
/
deployment.yaml
53 lines (53 loc) · 1.27 KB
/
deployment.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: apps/v1
kind: Deployment
metadata:
name: sm-agent-1
namespace: synthetic-monitoring
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
name: sm-agent-1
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
template:
metadata:
labels:
name: sm-agent-1
spec:
containers:
- args:
- /usr/local/bin/synthetic-monitoring-agent --api-server-address=${API_SERVER} --api-token=${API_TOKEN} --verbose=true
command:
- sh
- -c
env:
- name: API_TOKEN
valueFrom:
secretKeyRef:
key: api-token
name: sm-agent-1
#
- name: API_SERVER
value: "PROBE_API_SERVER_URL"
image: grafana/synthetic-monitoring-agent:latest
name: agent
ports:
- containerPort: 4050
name: http-metrics
readinessProbe:
httpGet:
path: /ready
port: 4050
livenessProbe:
httpGet:
path: /
port: 4050
resources:
requests:
cpu: 200m
memory: 500Mi