Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce kraft cloud subcommand #852

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

jake-ciolek
Copy link
Contributor

@jake-ciolek jake-ciolek commented Oct 2, 2023

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

This new subcommand gives users the power to exploit the full potential of Unikraft microVMs by helping them to run and manage instances on the millisecond platform, https://kraft.cloud/.

To get started, sign up for the beta. Once you've received your access token, simply export it via:

export KRAFTCLOUD_TOKEN=...

You can then view available images at individual metros, for example, listing images in Frankfurt:

kraft cloud --metro fra0 img ls

To deploy a new image, package it using kraft pkg and push it to index.unikraft.io:

kraft pkg --name index.unikraft.io/$KRAFTCLOUD_USER/my-app:latest .
kraft pkg push index.unikraft.io/$KRAFTCLOUD_USER/my-app:latest

You can deploy images at any metro via:

kraft cloud --metro fra0 instance create \
	--start \
	--port 80:443 \
	unikraft.io/$KRAFTCLOUD_USER/nginx:latest -- nginx -c /usr/local/nginx/conf/nginx.conf

@jake-ciolek jake-ciolek marked this pull request as draft October 2, 2023 18:00
@jake-ciolek jake-ciolek force-pushed the kraft-cloud-deploy branch 7 times, most recently from 6e98bc4 to 3a50737 Compare October 6, 2023 08:32
@jake-ciolek jake-ciolek force-pushed the kraft-cloud-deploy branch 2 times, most recently from 8214712 to 5fa87b7 Compare October 16, 2023 09:18
@jake-ciolek jake-ciolek changed the title feat(cloud): implement the initial kraft cloud deploy command feat(cloud): implement base image and instance commands Oct 16, 2023
@jake-ciolek jake-ciolek force-pushed the kraft-cloud-deploy branch 4 times, most recently from 255c686 to c08d89a Compare October 16, 2023 09:40
@craciunoiuc craciunoiuc self-requested a review October 16, 2023 09:55
@nderjung nderjung force-pushed the kraft-cloud-deploy branch 5 times, most recently from 6154171 to b47c6de Compare October 16, 2023 22:26
@nderjung nderjung changed the title feat(cloud): implement base image and instance commands feat: Introduce kraft cloud subcommand Oct 16, 2023
@nderjung nderjung marked this pull request as ready for review October 16, 2023 22:29
This new subcommand gives users the power to exploit the full potential
of Unikraft microVMs by helping them to run and manage instances on
the millisecond platform, https://kraft.cloud.

Co-authored-by: Alexander Jung <alex@unikraft.io>
Signed-off-by: Jakub Ciolek <jakub@unikraft.io>
Copy link
Member

@nderjung nderjung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nderjung nderjung merged commit 34342b9 into unikraft:staging Oct 16, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants