Jenkins X v2 is not in active development. Refer to the v3 documentation for the latest supported version.
jx gc pods
list of jx commands
jx gc pods
garbage collection for pods
Garbage collect old Pods that have completed or failed
jx gc pods [flags]
# garbage collect old pods of the default age jx gc pods # garbage collect pods older than 10 minutes jx gc pods -a 10m
-a, --age duration The minimum age of pods to garbage collect. Any newer pods will be kept (default 1h0m0s) -h, --help help for pods -n, --namespace string The namespace to look for the pods. Defaults to the current namespace -s, --selector string The selector to use to filter the pods
Options inherited from parent commands
-b, --batch-mode Runs in batch mode without prompting for user input --verbose Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace
- jx gc - Garbage collects Jenkins X resources
Auto generated by spf13/cobra on 2-Sep-2020
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 2, 2020: updated jx commands & API docs from 2.1.138 (4fc0bedc90)