Knowledge Base updated: 2026-11-19
Troubleshoot knowledge base
Troubleshoot is a Go-based diagnostic toolkit for Kubernetes and host environments. It collects support-bundle data, evaluates analyzer specifications, redacts sensitive output, and presents or uploads results through CLI workflows.
The repository is organized around reusable workflow packages (pkg/collect, pkg/analyze, pkg/preflight, pkg/redact, and pkg/supportbundle), versioned configuration APIs, command entrypoints, and shared Kubernetes/runtime services. Scheduled support bundles extend collection into recurring Kubernetes-managed jobs.
Critical workflow state is carried through declarative specifications, collected bundle artifacts, analyzer outcomes, and persisted or uploaded result archives. Kubernetes resources, local bundle directories, and remote/OCI sources provide the principal execution and delivery boundaries.
flowchart TD
CLI[CLI applications] --> PF[Preflight workflows]
CLI --> SB[Support-bundle workflows]
CLI --> SCH[Scheduled support bundles]
API[Versioned API specifications] --> PF
API --> SB
API --> SCH
PF --> COL[Collection]
PF --> ANA[Analysis]
SB --> COL
SB --> ANA
SB --> RED[Redaction]
COL --> ART[Bundle artifacts and upload]
ANA --> ART
RED --> ART
K8S[Kubernetes integration and runtime services] --> COL
K8S --> SCH
SCH --> JOBS[Schedule daemon and jobs]
ART --> OUT[Local, remote, or uploaded results]
Glossary
- Support bundle — A packaged diagnostic artifact containing collected data, analyzer results, metadata, and optionally redacted content.
- Collector — A specification-driven operation that gathers diagnostic data from Kubernetes, hosts, or related services.
- Analyzer — A rule that evaluates collected data and produces pass, fail, or outcome information.
- Preflight — An environment check run before installation or operation, using collector and analyzer configuration.
- Scheduled support bundle — A recurring support-bundle execution managed through scheduler/daemon and Kubernetes job facilities.
Codebase-wide invariants
- Configuration contracts remain versioned and scheme-registered; changes must keep Go API types and generated schemas aligned (
api/**,pkg/apis/**,schema/**). - Workflow behavior is specification-driven: collectors, analyzers, redactors, and preflight checks consume declarative configuration rather than command-specific data models (
pkg/collect/**,pkg/analyze/**,pkg/redact/**,pkg/preflight/**). - Bundle-producing workflows preserve the separation between collection, analysis, redaction, and archive/delivery handling (
pkg/collect/**,pkg/analyze/**,pkg/redact/**,pkg/supportbundle/**). - Kubernetes-facing operations use shared client and helper services rather than duplicating connection and resource-handling logic (
pkg/client/**,pkg/kubernetes/**,pkg/util/**). - CLI entrypoints compose workflow packages and should not become alternate implementations of workflow behavior (
cmd/**,pkg/**).
Routing table
pkg/supportbundle/**-> docs/support-bundle-workflows.mdpkg/collect/**-> docs/support-bundle-collection.mdpkg/analyze/**-> docs/support-bundle-analysis.mdpkg/redact/**-> docs/support-bundle-redaction.mdpkg/supportbundle/**-> docs/support-bundle-artifacts-and-upload.mdpkg/preflight/**-> docs/preflight-workflows.mdpkg/preflight/spec/**-> docs/preflight-specification-and-validation.mdpkg/preflight/**-> docs/preflight-execution-and-results.mdcmd/**-> docs/command-line-applications.mdcmd/troubleshoot/**-> docs/troubleshoot-cli.mdcmd/collect/**-> docs/standalone-collector-and-analyzer-clis.mdapi/**-> docs/api-specification-and-configuration.mdapi/**-> docs/troubleshoot-api-types-and-schemas.mdconfig/**-> docs/configuration-samples-and-crds.mdpkg/schedule/**-> docs/scheduled-support-bundles.mdpkg/schedule/**-> docs/schedule-daemon-and-jobs.mdpkg/client/**-> docs/kubernetes-integration-and-runtime.mdpkg/kubernetes/**-> docs/kubernetes-utilities-and-client-services.md