Appfile

Description

Appfile is the single source-of-truth of the application description in KubeVela. It captures the application architecture and behaviors of its components following Open Application Model.

Before learning about Appfile’s detailed schema, we recommend you to get familiar with core concepts and glossaries in KubeVela.

Schema

List of all available sections for Appfile.

  1. name: _app-name_
  2. services:
  3. _service-name_:
  4. # If `build` section exists, this field will be used as the name to build image. Otherwise, KubeVela will try to pull the image with given name directly.
  5. image: oamdev/testapp:v1
  6. build:
  7. docker:
  8. file: _Dockerfile_path_ # relative path is supported, e.g. "./Dockerfile"
  9. context: _build_context_path_ # relative path is supported, e.g. "."
  10. push:
  11. local: kind # optionally push to local KinD cluster instead of remote registry
  12. type: webservice (default) | worker | task
  13. # detailed configurations of workload
  14. ... properties of the specified workload ...
  15. _trait_1_:
  16. # properties of trait 1
  17. _trait_2_:
  18. # properties of trait 2
  19. ... more traits and their properties ...
  20. _another_service_name_: # more services can be defined
  21. ...