forked from kuberhealthy/kuberhealthy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
resource-quota.yaml
60 lines (60 loc) · 1.32 KB
/
resource-quota.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
---
apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
name: resource-quota
namespace: kuberhealthy
spec:
runInterval: 30m
timeout: 5m
podSpec:
containers:
- name: resource-quota
image: kuberhealthy/resource-quota-check:v1.3.0
imagePullPolicy: IfNotPresent
env:
- name: BLACKLIST
value: "default"
- name: WHITELIST
value: "kube-system,kuberhealthy"
resources:
requests:
cpu: 15m
memory: 15Mi
limits:
cpu: 50m
restartPolicy: Never
terminationGracePeriodSeconds: 30
serviceAccountName: kuberhealthy-resource-quota
---
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRoleBinding
metadata:
name: kuberhealthy-resource-quota
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kuberhealthy-resource-quota
subjects:
- kind: ServiceAccount
name: kuberhealthy-resource-quota
namespace: kuberhealthy
---
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRole
metadata:
name: kuberhealthy-resource-quota
rules:
- apiGroups:
- ""
resources:
- namespaces
- resourcequotas
verbs:
- list
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kuberhealthy-resource-quota
namespace: kuberhealthy