forked from derailed/popeye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codes.yml
234 lines (234 loc) · 5.64 KB
/
codes.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
codes:
# Container
100:
message: Untagged docker image in use
severity: 3
101:
message: Image tagged `latest in use
severity: 2
102:
message: No probes defined
severity: 2
103:
message: No liveness probe
severity: 2
104:
message: No readiness probe
severity: 2
105:
message: "%s probe uses a port#, prefer a named port"
severity: 1
106:
message: No resources defined
severity: 2
107:
message: No resource limits defined
severity: 2
108:
message: "Unnamed port %d"
severity: 1
109:
message: CPU Current/Request (%s/%s) reached user %d%% threshold (%d%%)
severity: 2
110:
message: Memory Current/Request (%s/%s) reached user %d%% threshold (%d%%)
severity: 2
111:
message: CPU Current/Limit (%s/%s) reached user %d%% threshold (%d%%)
severity: 3
112:
message: Memory Current/Limit (%s/%s) reached user %d%% threshold (%d%%)
severity: 3
# Pod
200:
message: Pod is terminating [%d/%d]
severity: 2
201:
message: Pod is terminating [%d/%d] %s
severity: 2
202:
message: Pod is waiting [%d/%d]
severity: 3
203:
message: Pod is waiting [%d/%d] %s
severity: 3
204:
message: Pod is not ready [%d/%d]
severity: 3
205:
message: Pod was restarted (%d) %s
severity: 2
206:
message: No PodDisruptionBudget defined
severity: 1
207:
message: Pod is in an unhappy phase (%s)
severity: 3
# Security
300:
message: Using `default` ServiceAccount
severity: 2
301:
message: Connects to API Server? ServiceAccount token is mounted
severity: 2
302:
message: Containers are possibly running as root
severity: 2
303:
message: Do you mean it? ServiceAccount is automounting APIServer credentials
severity: 2
304:
message: References a secret `%s` which does not exists
severity: 3
305:
message: References a docker-image `%s` pull secret which does not exists
severity: 3
# General
400:
message: Used? Unable to locate resource reference
severity: 1
401:
message: Key `%s` used? Unable to locate key reference
severity: 1
402:
message: No metric-server detected %v
severity: 1
403:
message: Deprecated %s API group `%s. Use `%s instead
severity: 2
404:
message: Deprecation check failed. %v
severity: 1
405:
message: Is this a jurassic cluster? Might want to upgrade K8s a bit
severity: 2
406:
message: K8s version OK
severity: 0
# Deployment + StatefulSet
500:
message: Zero scale detected
severity: 2
501:
message: "Used? No available replicas found"
severity: 2
503:
message: "At current load, CPU under allocated. Current:%s vs Requested:%s (%s)"
severity: 2
504:
message: "At current load, CPU over allocated. Current:%s vs Requested:%s (%s)"
severity: 2
505:
message: "At current load, Memory under allocated. Current:%s vs Requested:%s (%s)"
severity: 2
506:
message: "At current load, Memory over allocated. Current:%s vs Requested:%s (%s)"
severity: 2
# HPA
600:
message: HPA %s references a Deployment %s which does not exist
severity: 3
601:
message: HPA %s references a StatefulSet %s which does not exist
severity: 3
602:
message: Replicas (%d/%d) at burst will match/exceed cluster CPU(%s) capacity by %s
severity: 2
603:
message: Replicas (%d/%d) at burst will match/exceed cluster memory(%s) capacity by %s
severity: 2
604:
message: If ALL HPAs triggered, %s will match/exceed cluster CPU(%s) capacity by %s
severity: 2
605:
message: If ALL HPAs triggered, %s will match/exceed cluster memory(%s) capacity by %s
severity: 2
# Node
700:
message: Found taint `%s but no pod can tolerate
severity: 2
701:
message: Node is in an unknown condition
severity: 3
702:
message: Node is not in ready state
severity: 3
703:
message: Out of disk space
severity: 3
704:
message: Insuficient memory
severity: 2
705:
message: Insuficient disk space
severity: 2
706:
message: Insuficient PIDS on Node
severity: 3
707:
message: No network configured on node
severity: 3
708:
message: No node metrics available
severity: 1
709:
message: CPU threshold (%d%%) reached %d%%
severity: 2
710:
message: Memory threshold (%d%%) reached %d%%
severity: 2
711:
message: Scheduling disabled
severity: 2
# Namespace
800:
message: Namespace is inactive
severity: 3
# PodDisruptionBudget
900:
message: Used? No pods match selector
severity: 2
901:
message: MinAvailable (%d) is greater than the number of pods(%d) currently running
severity: 2
1000:
message: Available
severity: 1
1001:
message: Pending volume detected
severity: 3
1002:
message: Lost volume detected
severity: 3
1003:
message: Pending claim detected
severity: 3
1004:
message: Lost claim detected
severity: 3
# Service
1100:
message: No pods match service selector
severity: 3
1101:
message: Skip ports check. No explicit ports detected on pod %s
severity: 1
1102:
message: "Use of target port #%s for service port %s. Prefer named port"
severity: 1
1103:
message: Type Loadbalancer detected. Could be expensive
severity: 1
1104:
message: Do you mean it? Type NodePort detected
severity: 1
1105:
message: No associated endpoints
severity: 3
# NetworkPolicies
1200:
message: No pods matches %s pod selector
severity: 2
1201:
message: No namespaces matches %s namespace selector
severity: 2