-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubectl-triage.yaml
More file actions
88 lines (77 loc) · 3.17 KB
/
kubectl-triage.yaml
File metadata and controls
88 lines (77 loc) · 3.17 KB
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
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: triage
spec:
version: v0.1.0
homepage: https://github.com/topcug/kubectl-triage
shortDescription: First-response context for suspicious Kubernetes workloads
description: |
kubectl-triage collapses the first 60 seconds of Kubernetes incident triage
into a single command — summary first, details after.
It is read-only and safe to run in production clusters. It never modifies
cluster state.
Supported resources: pod, deployment, job
Output formats: table (default, coloured), json, markdown
Usage:
kubectl triage pod <n> -n <namespace>
kubectl triage deployment <n> -n <namespace>
kubectl triage job <n> -n <namespace>
Flags:
--verbose show full event list and owner chain
--quiet show summary bullets and triage readout only
-o json pipe-friendly JSON output
-o markdown paste into GitHub issues or incident docs
Exit codes:
0 no risk signals detected
1 error (not found, permission denied, timeout)
2 risk signals detected
caveats: |
Requires read access to: pods, pods/log, events, deployments, jobs,
serviceaccounts, networkpolicies, services, rolebindings,
clusterrolebindings, clusterroles.
If a permission is missing, the affected section shows a warning and
the rest of the report still renders.
platforms:
- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/topcug/kubectl-triage/releases/download/v0.1.0/kubectl-triage_linux_amd64.tar.gz
sha256: "ffc3281794a91147f542815fc034b54915393cde6d1c4d1ccb9bc399e094f6e4"
bin: kubectl-triage
- selector:
matchLabels:
os: linux
arch: arm64
uri: https://github.com/topcug/kubectl-triage/releases/download/v0.1.0/kubectl-triage_linux_arm64.tar.gz
sha256: "8ff52175a2ec8cc714d69cd2862b508f86c3a5fa54f9eb46874d7ec109bfe84e"
bin: kubectl-triage
- selector:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/topcug/kubectl-triage/releases/download/v0.1.0/kubectl-triage_darwin_amd64.tar.gz
sha256: "0e51cc1229673900f759358bd4b194e1c80a3c5c56fac5017f84fb7f5eacdcb0"
bin: kubectl-triage
- selector:
matchLabels:
os: darwin
arch: arm64
uri: https://github.com/topcug/kubectl-triage/releases/download/v0.1.0/kubectl-triage_darwin_arm64.tar.gz
sha256: "73104d4a8dd141c301c2f4a907e3e0687ef9d84fbe8196d54f02e8d3aa3ddbf5"
bin: kubectl-triage
- selector:
matchLabels:
os: windows
arch: amd64
uri: https://github.com/topcug/kubectl-triage/releases/download/v0.1.0/kubectl-triage_windows_amd64.zip
sha256: "d884130ba69076cf1724a8b92b44ba794839b4254aca3dafe287c2ef31b250b2"
bin: kubectl-triage.exe
- selector:
matchLabels:
os: windows
arch: arm64
uri: https://github.com/topcug/kubectl-triage/releases/download/v0.1.0/kubectl-triage_windows_arm64.zip
sha256: "f5a34503b21996797aea9233b0c151c5eed24bf0ad7e5ab0b0c41c10d9b29b54"
bin: kubectl-triage.exe