<mohammadrony>

Troubleshoot

Preflight checks and support bundle collection for Kubernetes clusters.

Docs

Installation

kubectl krew install preflight
kubectl krew install support-bundle

Support Bundle

General cluster health - events, node status, pod logs, configs

kubectl support-bundle https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml

Save to a file to share with team or vendor

kubectl support-bundle --out incident-$(date +%F).tar.gz \
  https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml

Weave networking issues

kubectl support-bundle https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/support-bundle/weave-analyzer.yaml

Collect with built-in analyzers (checks common failure patterns)

kubectl support-bundle https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/support-bundle/sample-analyzers.yaml

Preflight

General cluster readiness

kubectl preflight https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/preflight/sample-preflight.yaml

Node resource requirements (CPU, memory, disk)

kubectl preflight https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/preflight/node-resources.yaml

PostgreSQL connectivity

kubectl preflight https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/preflight/postgres.yaml

Redis connectivity

kubectl preflight https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/preflight/redis.yaml