-
-
Notifications
You must be signed in to change notification settings - Fork 276
/
spinach_aks.yml
50 lines (44 loc) 路 1.3 KB
/
spinach_aks.yml
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
# A Sample AKS Popeye configuration.
popeye:
allocations:
cpu:
# Checks if cpu is under allocated by more than 200% at current load.
underPercUtilization: 200
# Checks if cpu is over allocated by more than 50% at current load.
overPercUtilization: 50
memory:
# Checks if mem is under allocated by more than 200% at current load.
underPercUtilization: 200
# Checks if mem is over allocated by more than 50% at current load.
overPercUtilization: 50
# Excludes define rules to exampt resources from sanitization
excludes:
global:
fqns: [rx:kube-system]
linters:
clusterrolebindings:
instances:
- fqns: [rx:system, rx:aks, rx:omsagent]
clusterroles:
instances:
- fqns: [omsagent-reader, system, admin, edit, view, cluster-admin]
codes: [400]
resources:
# Nodes specific sanitization
node:
limits:
cpu: 90
memory: 80
# Pods specific sanitization
pod:
limits:
# Fail if cpu is over 80%
cpu: 80
# Fail if pod mem is over 75%
memory: 75
# Fail if more than 3 restarts on any pods
restarts: 3
# Code specifies a custom severity level ie critical=3, warn=2, info=1
overrides:
- codes: 206
severity: 1