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 KraftCloud 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
KraftCloud 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:
A Few KraftCloud Concepts and Features
Just to make your initial KraftCloud experience as smooth as possible it is important to note a few things about the platform.
- We use the term
instance
to mean a running app (essentially a virtual machine). - Images are pushed to a registry from where they’re pulled for running (more on this topic here).
- All your instances have a private IP and DNS name and can talk to each other v ia these; here’s a guide to show you how to plug two apps together.
- If you want an instance to be able to connect to the outside world, you need to put it in a service group (see guide here).
- Load balancing is done also via service groups (see guide here).
- When launching an app you can set its restart policy to never/always/on-failure, see CLI ref and API ref.
- We also support volumes, custom domains and rolling updates.
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,
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! ⚒️🚀