forked from kuberhealthy/kuberhealthy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
cronjob-checker.yaml
43 lines (43 loc) · 950 Bytes
/
cronjob-checker.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
apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
name: cronjob-checker
spec:
runInterval: 5m
timeout: 10m
podSpec:
serviceAccountName: cronjob-checker
containers:
- name: cronjob-checker
image: kuberhealthy/cronjob-checker:v2.1.0
imagePullPolicy: IfNotPresent
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: 15m
memory: 15Mi
limits:
cpu: 25m
restartPolicy: Always
terminationGracePeriodSeconds: 5
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: cronjob-checker
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kuberhealthy
subjects:
- kind: ServiceAccount
name: cronjob-checker
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cronjob-checker