Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 972 Bytes

File metadata and controls

43 lines (30 loc) · 972 Bytes
title linktitle type description aliases
jx gitops gc pods
pods
docs
garbage collection for pods ***Aliases**: pod*
jx-gitops_gc_pods

Usage

jx gitops gc pods

Synopsis

Garbage collect old Pods that have completed or failed

Examples

# garbage collect old pods of the default age
jx gitops gc pods

# garbage collect pods older than 10 minutes
jx gitops gc pods -a 10m

Options

  -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. If empty will work in namespaces labelled by 'env' and 'gitops.jenkins-x.io/pipeline', also will include `'jx-git-operator' namespace
  -s, --selector string    The selector to use to filter the pods

Source

jenkins-x-plugins/jx-gitops