Quick Start
The simplest way to interact with the platform is to install the kraft
tool:
For Winows, use Windows Subsystem for Linux 2 (WSL2). First ensure that you have WSL2 set up on your host.
We recommend using the Linux distributions Ubuntu or Debian:·
Once complete, restart WSL either by shutting down Windows or by closing all of your WSL terminal windows, and issue this command in , CMD, or Windows Run menu (Windows+R):
Install kraft
:
Once you have installed kraft
, set the UKC (Unikraft Platform) access token you received during your on-boarding:
To take it out for a spin, run:
This will create an NGINX web server instance in the fra0
metro, mapping port 443 (HTTPS) to port 8080 (NGINX’s default port). You should see output such as
You can then test your app with your browser or via curl
:
Finally, you can kill your instance with:
For autoscale, please refer to the autoscale guide.
A Few Unikraft Cloud Concepts and Features
Just to make your initial Unikraft Cloud experience as smooth as possible it is important to note a few things about the platform.
- All apps are scaled to zero by default. Heavyweight apps can also be started quickly.
- We use the term
instance
to mean a running app (essentially a virtual machine). - We use the term
service
as an abstraction to provide Internet connectivity to apps. - Additionally,
services
are also used to load balance traffic across instances of the same app type. - All your instances have a private IP and DNS name and can talk to each other via these; here’s a guide to show you how to plug two apps together; alternatively, you can use the compose command.
- When launching an app you can set its restart policy to never/always/on-failure, see CLI ref and API ref.
- Images are pushed to a registry from where they’re pulled for running (more on this topic here).
- We also support volumes, custom domains and rolling updates.
- It’s possible to tunnel to private ports and instances using the tunnel command.
Also, it’s worth being aware of the FAQs, where we document common issues users run into.
Next Steps
To help you kick-start your project we’ve put together a set of guides that will allow you to quickly deploy your favorite app. Also in that section you will find another set of guides showing how to use some of the platform’s features, including scale to 0 (on by default, but you can disable it), and autoscale.
If you’re interested in digging into even more details about how the platform works, you can further read the API documentation.
Finally, see the CLI Reference for a full description of all kraft cloud
commands.
Finally, any and all feedback is greatly appreciated. Happy Krafting! ⚒️🚀