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


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


-D, --as string Set the deployment type
--build-log string Use the specified file to save the output from the build
-c, --config string Override the path to the KConfig .config file
--dbg Build the debuggable (symbolic) kernel image instead of the stripped image
--domain string Alias for --fqdn|-d
-e, --env strings Environmental variables
-f, --feature strings Specify the special features to enable
--force-pull Force pulling packages before building
-d, --fqdn string Set the fully qualified domain name for the service
-h, --help help for deploy
-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 int Number of replicas of the instance
--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 string Set the name to use when provisioning a subdomain
--timeout duration Set the timeout for remote procedure calls
-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.


The kraft cloud deploy command can also be run as:

launch, run

See Also

  • kraft cloud: Manage resources on the KraftCloud platform