-
Notifications
You must be signed in to change notification settings - Fork 87
/
spec.yaml
267 lines (266 loc) · 7.35 KB
/
spec.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
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: collector-sample
spec:
collectors:
- clusterInfo: {}
- clusterResources: {}
- ceph: {}
- longhorn: {}
- exec:
args:
- "-U"
- kotsadm
collectorName: kotsadm-postgres-db
command:
- pg_dump
containerName: kotsadm-postgres
name: kots/admin_console
selector:
- app=kotsadm-postgres
timeout: 10s
- exec:
args:
- "http://localhost:3030/goroutines"
collectorName: kotsadm-goroutines
command:
- curl
containerName: kotsadm
name: kots/admin_console
selector:
- app=kotsadm
timeout: 10s
- exec:
args:
- "http://localhost:3030/goroutines"
collectorName: kotsadm-operator-goroutines
command:
- curl
containerName: kotsadm-operator
name: kots/admin_console
selector:
- app=kotsadm-operator
timeout: 10s
- logs:
collectorName: kotsadm-postgres-db
name: kots/admin_console
selector:
- app=kotsadm-postgres
- logs:
collectorName: kotsadm-api
name: kots/admin_console
selector:
- app=kotsadm-api
- logs:
collectorName: kotsadm-operator
name: kots/admin_console
selector:
- app=kotsadm-operator
- logs:
collectorName: kotsadm
name: kots/admin_console
selector:
- app=kotsadm
- logs:
collectorName: kurl-proxy-kotsadm
name: kots/admin_console
selector:
- app=kurl-proxy-kotsadm
- logs:
collectorName: kotsadm-dex
name: kots/admin_console
selector:
- app=kotsadm-dex
- logs:
collectorName: kotsadm-fs-minio
name: kots/admin_console
selector:
- app=kotsadm-fs-minio
- logs:
collectorName: kotsadm-s3-ops
name: kots/admin_console
selector:
- app=kotsadm-s3-ops
- logs:
collectorName: registry
name: kots/kurl
selector:
- app=registry
namespace: kurl
- logs:
collectorName: ekc-operator
name: kots/kurl
selector:
- app=ekc-operator
namespace: kurl
- secret:
collectorName: kotsadm-replicated-registry
name: kotsadm-replicated-registry # NOTE: this will not live under the kots/ directory like other collectors
includeValue: false
key: .dockerconfigjson
- logs:
collectorName: rook-ceph-agent
selector:
- app=rook-ceph-agent
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-ceph-mgr
selector:
- app=rook-ceph-mgr
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-ceph-mon
selector:
- app=rook-ceph-mon
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-ceph-operator
selector:
- app=rook-ceph-operator
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-ceph-osd
selector:
- app=rook-ceph-osd
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-ceph-osd-prepare
selector:
- app=rook-ceph-osd-prepare
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-ceph-rgw
selector:
- app=rook-ceph-rgw
namespace: rook-ceph
name: kots/rook
- logs:
collectorName: rook-discover
selector:
- app=rook-discover
namespace: rook-ceph
name: kots/rook
- exec:
collectorName: weave-status
command:
- /home/weave/weave
args:
- --local
- status
containerName: weave
exclude: ""
name: kots/kurl/weave
namespace: kube-system
selector:
- name=weave-net
timeout: 10s
- exec:
collectorName: weave-report
command:
- /home/weave/weave
args:
- --local
- report
containerName: weave
exclude: ""
name: kots/kurl/weave
namespace: kube-system
selector:
- name=weave-net
timeout: 10s
- exec:
args:
- "http://goldpinger.kurl.svc.cluster.local:80/check_all"
collectorName: goldpinger-statistics
command:
- curl
containerName: kotsadm
name: kots/goldpinger
selector:
- app=kotsadm
timeout: 10s
- copyFromHost:
collectorName: kurl-host-preflights
name: kots/kurl/host-preflights
hostPath: /var/lib/kurl/host-preflights
extractArchive: true
image: alpine
imagePullPolicy: IfNotPresent
timeout: 1m
- configMap:
collectorName: kurl-current-config
name: kurl-current-config # NOTE: this will not live under the kots/ directory like other collectors
namespace: kurl
includeAllData: true
- configMap:
collectorName: kurl-last-config
name: kurl-last-config # NOTE: this will not live under the kots/ directory like other collectors
namespace: kurl
includeAllData: true
- collectd:
collectorName: collectd
hostPath: /var/lib/collectd/rrd
image: alpine
imagePullPolicy: IfNotPresent
timeout: 5m
analyzers:
- clusterVersion:
outcomes:
- fail:
when: "< 1.16.0"
message: The Admin Console requires at least Kubernetes 1.16.0
- pass:
message: Your cluster meets the recommended and required versions of Kubernetes
- containerRuntime:
outcomes:
- fail:
when: "== gvisor"
message: The Admin Console does not support using the gvisor runtime
- pass:
message: A supported container runtime is present on all nodes
- cephStatus: {}
- longhorn: {}
- statefulsetStatus: {}
- deploymentStatus: {}
- jobStatus: {}
- replicasetStatus: {}
- weaveReport:
reportFileGlob: kots/kurl/weave/kube-system/*/weave-report-stdout.txt
- textAnalyze:
checkName: Weave Status
exclude: ""
fileName: kots/kurl/weave/kube-system/weave-net-*/weave-status-stdout.txt
outcomes:
- fail:
message: Weave is not ready
- pass:
message: Weave is ready
regex: 'Status: ready'
- textAnalyze:
checkName: Weave Report
exclude: ""
fileName: kots/kurl/weave/kube-system/weave-net-*/weave-report-stdout.txt
outcomes:
- fail:
message: Weave is not ready
- pass:
message: Weave is ready
regex: '"Ready": true'
- textAnalyze:
checkName: Inter-pod Networking
exclude: ""
fileName: kots/goldpinger/*/kotsadm-*/goldpinger-statistics-stdout.txt
outcomes:
- fail:
when: "OK = false"
message: Some nodes have pod communication issues
- pass:
message: Goldpinger can communicate properly
regexGroups: '"OK": ?(?P<OK>\w+)'