Skip to content

kraft cloud deploy

‘kraft cloud deploy’ combines a number of kraft cloud sub-commands to enable you to build, package, ship and deploy your application with a single command.

kraft cloud deploy

Examples

# Run an image from KraftCloud's catalog:
$ kraft cloud --metro fra0 deploy -p 443:8080 caddy:latest

Options

-D, --as string Set the deployment type
--build-log string Use the specified file to save the output from the build
-z, --compress Compress the initrd package (experimental)
-c, --config string Override the path to the KConfig .config file
--dbg Build the debuggable (symbolic) kernel image instead of the stripped image
-d, --domain strings Set the domain names for the service
-e, --env strings Environmental variables
-f, --feature strings Specify the special features to enable
--force-pull Force pulling packages before building
-h, --help help for deploy
-i, --image string Set the image name to use
-j, --jobs int Allow N jobs at once
-K, --kraftfile string Set the Kraftfile to use
-M, --memory int Specify the amount of memory to allocate (MiB)
-n, --name string Name of the deployment
-F, --no-cache Force a rebuild even if existing intermediate artifacts already exist
--no-configure Do not run Unikraft's configure step before building
--no-fast Do not use maximum parallelization when performing the build
--no-fetch Do not run Unikraft's fetch step before building
-S, --no-start Do not start the instance after creation
--no-update Do not update package index before running the build
-o, --output string Set output format
-p, --port strings Specify the port mapping between external to internal
-R, --replicas uint Number of replicas of the instance
--restart string Set the restart policy for the instance (never/always/on-failure) (default "never")
--rollout string Set the rollout strategy for an instance which has been previously run in the provided service group. (default "prompt")
--rollout-qualifier string Set the rollout qualifier used to determine which instances should be affected by the strategy in the supplied service group. (default "image")
--rollout-wait duration Time to wait before performing rolling out action (default 10s)
--rootfs string Specify a path to use as root filesystem
--runtime string Set an alternative project runtime
-0, --scale-to-zero Scale the instance to zero after deployment
-g, --service-group string Attach the new deployment to an existing service group
--strategy string When a package of the same name exists, use this strategy when applying targets. (default "overwrite")
-s, --subdomain strings Set the names to use when provisioning subdomains
--timeout duration Set the timeout for remote procedure calls (default 1m0s)
-v, --volume strings Specify the volume mapping(s) in the form NAME:DEST or NAME:DEST:OPTIONS
-w, --workdir string Set an alternative working directory (default is cwd)

Options inherited from parent commands

--metro string Set the KraftCloud metro
--token string Set the KraftCloud token

Aliases

The kraft cloud deploy command can also be run as:

launch, run

See Also

  • kraft cloud: Manage resources on the KraftCloud platform