Kwokctl 快照导出

kwokctl 快照导出 #

[实验性] 导出外部集群的快照

kwokctl snapshot export [flags]

选项 #

      --as string                Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
      --as-group strings         Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --filter strings           Filter the resources to export (default [namespace,node,serviceaccount,configmap,secret,limitrange,runtimeclass.node.k8s.io,priorityclass.scheduling.k8s.io,clusterrolebindings.rbac.authorization.k8s.io,clusterroles.rbac.authorization.k8s.io,rolebindings.rbac.authorization.k8s.io,roles.rbac.authorization.k8s.io,daemonset.apps,deployment.apps,replicaset.apps,statefulset.apps,cronjob.batch,job.batch,persistentvolumeclaim,persistentvolume,pod,service,endpoints])
  -h, --help                     help for export
      --kubeconfig string        Path to the kubeconfig file to use
      --page-buffer-size int32   Define the number of pages to buffer (default 10)
      --page-size int            Define the page size (default 500)
      --path string              Path to the snapshot
      --record                   Record the change of the cluster

从父命令继承的选项 #

  -c, --config strings   config path (default [~/.kwok/kwok.yaml])
      --dry-run          Print the command that would be executed, but do not execute it
      --name string      cluster name (default "kwok")
  -v, --v log-level      number for the log level verbosity (DEBUG, INFO, WARN, ERROR) or (-4, 0, 4, 8) (default INFO)

另请参见 #

  • kwokctl 快照 - 快照 [保存、恢复、记录、重放、导出] 集群之一