kubedb create

Create a resource by filename or stdin


Create a resource by filename or stdin.

JSON and YAML formats are accepted.

kubedb create [flags]


  # Create a elasticsearch using the data in elastic.json.
  kubedb create -f ./elastic.json
  # Create a elasticsearch based on the JSON passed into stdin.
  cat elastic.json | kubedb create -f -


  -f, --filename stringSlice   Filename to use to create the resource
  -h, --help                   help for create
  -n, --namespace string       Create object(s) in this namespace. (default "default")
  -R, --recursive              Process the directory used in -f, --filename recursively.

Options inherited from parent commands

      --analytics             Send analytical events to Google Analytics (default true)
      --kube-context string   name of the kubeconfig context to use


  • kubedb - Command line interface for KubeDB