Introducing a new way to review your PRs.

Read the announcement

replicatedhq / troubleshoot

Preflight Checks and Support Bundles Framework for Kubernetes Applications

View on GitHub

19 documents · Updated Nov 20, 2026

overview

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