Difference between revisions of "Kubedump (sj14)"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
  [[apt install -y golang]] && [[go install github.com/sj14/kubedump@latest]]
 
  [[apt install -y golang]] && [[go install github.com/sj14/kubedump@latest]]
  
 +
[[kubedump -namespaces]]
  
 
<pre>
 
<pre>

Revision as of 13:36, 12 December 2023

https://github.com/sj14/kubedump

brew install sj14/tap/kubedump


apt install -y golang && go install github.com/sj14/kubedump@latest
kubedump -namespaces 
 kubedump --help
Usage of ./kubedump:
  -clusterscoped
        dump cluster-wide resources (default true)
  -config string
        path to the kubeconfig, empty for in-cluster config (default "/root/.kube/config")
  -context string
        context from the kubeconfig, empty for default
  -dir string
        output directory for the dumps (default "dump")
  -groups string
        groups to dump (e.g. 'metrics.k8s.io,coordination.k8s.io'), empty for all
  -ignore-groups string
        groups to ignore (e.g. 'metrics.k8s.io,coordination.k8s.io')
  -ignore-labels string
        ignore resources with the given labels (e.g. key1=value1,key2=value2)
  -ignore-namespaces string
        namespaces to ignore (e.g. 'ns1,ns2')
  -ignore-resources string
        resources to ignore (e.g. 'configmaps,secrets')
  -labels string
        dump resources with the given labels (e.g. key1=value1,key2=value2), empty for all
  -namespaced
        dump namespaced resources (default true)
  -namespaces string
        namespaces to dump (e.g. 'ns1,ns2'), empty for all
  -resources string
        resources to dump (e.g. 'configmaps,secrets'), empty for all
  -stateless
        remove fields containing a state of the resource (default true)
  -threads uint
        maximum number of threads (minimum 1) (default 10)
  -verbosity uint
        verbosity of the output (0-3) (default 1)
  -version
        print version information of this release (undefined)

See also

Advertising: