cilium-bugtool

Collects agent & system information useful for bug reporting

Synopsis

Collects agent & system information useful for bug reporting

  1. cilium-bugtool [OPTIONS] [flags]

Examples

  1. # Collect information and create archive file
  2. $ cilium-bugtool
  3. [...]
  4. # Collect and retrieve archive if Cilium is running in a Kubernetes pod
  5. $ kubectl get pods --namespace kube-system
  6. NAME READY STATUS RESTARTS AGE
  7. cilium-kg8lv 1/1 Running 0 13m
  8. [...]
  9. $ kubectl -n kube-system exec cilium-kg8lv -- cilium-bugtool
  10. $ kubectl cp kube-system/cilium-kg8lv:/tmp/cilium-bugtool-243785589.tar /tmp/cilium-bugtool-243785589.tar

Options

  1. --archive Create archive when false skips deletion of the output directory (default true)
  2. --archive-prefix string String to prefix to name of archive if created (e.g., with cilium pod-name)
  3. -o, --archiveType string Archive type: tar | gz (default "tar")
  4. --config string Configuration to decide what should be run (default "./.cilium-bugtool.config")
  5. --dry-run Create configuration file of all commands that would have been executed
  6. --enable-markdown Dump output of commands in markdown format
  7. --exec-timeout duration The default timeout for any cmd execution in seconds (default 30s)
  8. --get-pprof When set, only gets the pprof traces from the cilium-agent binary
  9. -h, --help help for cilium-bugtool
  10. -H, --host string URI to server-side API
  11. --k8s-label string Kubernetes label for Cilium pod (default "k8s-app=cilium")
  12. --k8s-mode Require Kubernetes pods to be found or fail
  13. --k8s-namespace string Kubernetes namespace for Cilium pod (default "kube-system")
  14. --pprof-port int Port on which pprof server is exposed (default 6060)
  15. --pprof-trace-seconds int Amount of seconds used for pprof CPU traces (default 180)
  16. -t, --tmp string Path to store extracted files. Use '-' to send to stdout. (default "/tmp")