Quick Start

Welcome to KubeVela! In this guide, we’ll walk you through how to install KubeVela, and deploy your first simple application.

Step 1: Install

Make sure you have finished and verified the installation following this guide.

Step 2: Deploy Your First Application

  1. $ vela up -f https://raw.githubusercontent.com/oam-dev/kubevela/master/docs/examples/vela.yaml
  2. Parsing vela.yaml ...
  3. Loading templates ...
  4. Rendering configs for service (testsvc)...
  5. Writing deploy config to (.vela/deploy.yaml)
  6. Applying deploy configs ...
  7. Checking if app has been deployed...
  8. App has not been deployed, creating a new deployment...
  9. App has been deployed 🚀🚀🚀
  10. Port forward: vela port-forward testapp
  11. SSH: vela exec testapp
  12. Logging: vela logs testapp
  13. App status: vela status testapp
  14. Service status: vela status testapp --svc testsvc

Check the status until we see Routes are ready:

  1. $ vela status testapp
  2. About:
  3. Name: testapp
  4. Namespace: default
  5. Created at: ...
  6. Updated at: ...
  7. Services:
  8. - Name: testsvc
  9. Type: webservice
  10. HEALTHY Ready: 1/1
  11. Last Deployment:
  12. Created at: ...
  13. Updated at: ...
  14. Routes:
  15. - route: Visiting URL: http://testsvc.example.com IP: localhost

In kind cluster setup, you can visit the service via localhost. In other setups, replace localhost with ingress address accordingly.

  1. $ curl -H "Host:testsvc.example.com" http://localhost/
  2. <xmp>
  3. Hello World
  4. ## .
  5. ## ## ## ==
  6. ## ## ## ## ## ===
  7. /""""""""""""""""\___/ ===
  8. ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
  9. \______ o _,/
  10. \ \ _,'
  11. `'--.._\..--''
  12. </xmp>

Voila! You are all set to go.

What’s Next

Congratulations! You have just deployed an app using KubeVela. Here are some recommended next steps:

Welcome onboard and sail Vela!