Version: v1.2

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.

  1. vela def apply DEFINITION.cue [flags]

Examples

  1. # Command below will apply the local my-webservice.cue file to kubernetes vela-system namespace
  2. > vela def apply my-webservice.cue
  3. # Command below will apply the ./defs/my-trait.cue file to kubernetes default namespace
  4. > 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
  5. > vela def apply ./defs/my-trait.cue --dry-run

Options

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

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra on 12-Jan-2022, refer to script in KubeVela.