版本:v1.4

vela up

Deploy one application

Deploy one application

Deploy one application based on local files or re-deploy an existing application. With the -n/—namespace flag, you can choose the location of the target application.

To apply application from file, use the -f/—file flag to specify the application file location.

To give a particular version to this deploy, use the -v/—publish-version flag. When you are deploying an existing application, the version name must be different from the current name. You can also use a history revision for the deploy and override the current application by using the -r/—revision flag.

  1. vela up
  1. # Deploy an application from file
  2. vela up -f ./app.yaml
  3. # Deploy an application with a version name
  4. vela up example-app -n example-ns --publish-version beta
  5. # Deploy an application using existing revision
  6. vela up example-app -n example-ns --publish-version beta --revision example-app-v2
  1. --debug Enable debug mode for application
  2. -e, --env string The environment name for the CLI request
  3. -f, --file string The file path for appfile or application. It could be a remote url.
  4. -h, --help help for up
  5. -n, --namespace string If present, the namespace scope for this CLI request
  6. -v, --publish-version string The publish version for deploying application.
  7. -r, --revision string The revision to use for deploying the application, if empty, the current application configuration will be used.
  1. -y, --yes Assume yes for all user prompts

Last updated on 2022年12月22日 by Ihor Sychevskyi