Skip to main content
版本:v1.1

vela def apply

Apply definition

Synopsis

Apply 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
# 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

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 to apply. (default "vela-system")

Options inherited from parent commands

  -e, --env string   specify environment name for application

SEE ALSO

Auto generated by spf13/cobra on 19-Aug-2021