DocsReleasesCommunityGuidesBlog

kraft cloud instance create

Create an instance

kraft cloud instance create [FLAGS] IMAGE [-- ARGS]

Examples#

# Create a hello world instance
$ kraft cloud instance create -M 64 unikraft.org/helloworld:latest
# Create a new NGINX instance in Frankfurt and start it immediately. Map the external
# port 443 to the internal port 80 which the application listens on.
$ kraft cloud --metro fra0 instance create \
--start \
--port 443:80 \
unikraft.io/official/nginx:latest
# This command is the same as above, however using the more elaborate port expression.
# This is because in fact we need need to accept TLS and HTTP connections and redirect
# port 80 to port 443. The above example exists only as a shortcut for what is written
# below:
$ kraft cloud --metro fra0 instance create \
--start \
--port 443:80/http+tls \
--port 80:443/http+redirect \
unikraft.io/official/nginx:latest

Options#

-e, --env strings Environmental variables
-h, --help help for create
-M, --memory int Specify the amount of memory to allocate
-n, --name string Specify the name of the package
-o, --output string Set output format (default "table")
-p, --port strings Specify the port mapping between external to internal
-R, --replicas int Number of replicas of the instance (default 1)
-S, --start Immediately start the instance after creation

Options inherited from parent commands#

--metro string Set the KraftCloud metro.

See Also#

  • kraft cloud instance - Manage KraftCloud instances
Edit this page on GitHub

Connect with the community

Feel free to ask questions, report issues, and meet new people.

Join us on Discord!
®

Getting Started

What is a unikernel?Install CLI companion toolUnikraft InternalsRoadmap

© 2023  The Unikraft Authors. All rights reserved. Documentation distributed under CC BY-NC 4.0.