-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprobeep.yaml
75 lines (75 loc) · 1.63 KB
/
probeep.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: v1
kind: ServiceAccount
metadata:
name: probeep
namespace: monitor
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: probeep
subjects:
- kind: ServiceAccount
name: probeep
namespace: monitor
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: probeep
namespace: monitor
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
app: probeep
template:
metadata:
labels:
app: probeep
spec:
containers:
- name: probeep
image: harbor.beekast.info/infra/probeep:v0.1.0
imagePullPolicy: IfNotPresent
env:
- name: CHECK_NAMESPACE
value: prd
- name: CHECK_ENDPOINT
value: rabbitmq
- name: CHECK_PORT
value: "15672"
- name: PERIOD_SECONDS
value: "10"
- name: TIMEOUT_SECONDS
value: "3"
resources:
limits:
memory: "50Mi"
cpu: "20m"
requests:
memory: "20Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 1
imagePullSecrets:
- name: registry
restartPolicy: Always
terminationGracePeriodSeconds: 20
serviceAccountName: probeep