Skip to main content
Version: v1.9

vela def apply

Apply X-Definition.

Synopsis

Apply X-Definition from local storage to kubernetes cluster. It will apply file to vela-system namespace by default.

vela def apply DEFINITION.cue [flags]

Examples

# Command below will apply the local my-webservice.cue file to kubernetes vela-system namespace
> vela def apply my-webservice.cue
# Apply the local directory including all files(YAML and CUE definition) to kubernetes vela-system namespace
> vela def apply def/
# Command below will apply the ./defs/my-trait.cue file to kubernetes default namespace
> vela def apply ./defs/my-trait.cue --namespace default# Command below will convert the ./defs/my-trait.cue file to kubernetes CRD object and print it without applying it to kubernetes
> vela def apply ./defs/my-trait.cue --dry-run# Apply a CUE from URL
> vela def apply https://my-host-to-def/my-trait.cue --dry-run# Apply a CUE from stdin
> vela def apply -

Options

      --dry-run            only build definition from CUE into CRB object without applying it to kubernetes clusters
-h, --help help for apply
-n, --namespace string Specify which namespace the definition locates. (default "vela-system")

Options inherited from parent commands

  -V, --verbosity Level   number for the log level verbosity
-y, --yes Assume yes for all user prompts

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra script in KubeVela.