项目作者: elonzh

项目描述 :
export editable kubernetes resources
高级语言: Go
项目地址: git://github.com/elonzh/kubeexport.git
创建时间: 2019-11-15T02:39:48Z
项目社区:https://github.com/elonzh/kubeexport

开源协议:Apache License 2.0

下载


kubeexport

export your kubernetes cluster

Usage

  1. $kubeexport -h
  2. Export resources from your kubernetes cluster
  3. Usage:
  4. kubeexport [flags] resourceTypes...
  5. Examples:
  6. # export all exportable resources into directory "exported_resources"
  7. kubeexport -o "exported_resources"
  8. # export "deployments", "jobs" resources into default output directory
  9. kubeexport deployments jobs
  10. Flags:
  11. --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
  12. --as string Username to impersonate for the operation
  13. --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
  14. --cache-dir string Default HTTP cache directory (default "/Users/elonzh/.kube/http-cache")
  15. --certificate-authority string Path to a cert file for the certificate authority
  16. --client-certificate string Path to a client certificate file for TLS
  17. --client-key string Path to a client key file for TLS
  18. --cluster string The name of the kubeconfig cluster to use
  19. --context string The name of the kubeconfig context to use
  20. --dir string output dir (default "output")
  21. -h, --help help for kubeexport
  22. --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
  23. --kubeconfig string Path to the kubeconfig file to use for CLI requests.
  24. -n, --namespace string If present, the namespace scope for this CLI request
  25. -o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file. (default "yaml")
  26. --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
  27. -s, --server string The address and port of the Kubernetes API server
  28. --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
  29. --token string Bearer token for authentication to the API server
  30. --user string The name of the kubeconfig user to use