-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
54 lines (53 loc) · 1.19 KB
/
deployment.yaml
File metadata and controls
54 lines (53 loc) · 1.19 KB
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: alertreceiver
labels:
app: alertreceiver
spec:
replicas: 1
selector:
matchLabels:
app: alertreceiver
template:
metadata:
labels:
app: alertreceiver
spec:
containers:
- name: alertreceiver
image: alertreceiver:latest
ports:
- containerPort: 80
name: http
env:
- name: MADISON_API_KEY
valueFrom:
secretKeyRef:
name: alertreceiver-secrets
key: madison-api-key
- name: MADISON_URL
value: "https://madison.flant.com/api/events/custom/%s"
- name: DMS
value: "AlertReceiver"
- name: PORT
value: "80"
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "200m"
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 5
periodSeconds: 10