You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
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.
--analytics Send analytical events to Google Analytics (default true)
--kube-context string name of the kubeconfig context to use