Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

testkube_create_template

testkube create template

Create a new Template.

Synopsis

Create a new Template Custom Resource.

testkube create template [flags]

Options

      --body string            a path to template file to use as template body
-h, --help help for template
-l, --label stringToString label key value pair: --label key1=value1 (default [])
-n, --name string unique template name - mandatory
--template-type string template type one of job|container|cronjob|scraper|pvc|webhook
--update update, if template already exists

Options inherited from parent commands

  -a, --api-uri string          api uri, default value read from config if set (default "http://localhost:8088")
-c, --client string client used for connecting to Testkube API one of proxy|direct|cluster (default "proxy")
--crd-only generate only crd
--header stringToString headers for direct client key value pair: --header name=value (default [])
--insecure insecure connection for direct client
--namespace string Kubernetes namespace, default value read from config if set (default "testkube")
--verbose show additional debug messages

SEE ALSO