Kusion is a modern application delivery and management toolchain that enables developers to specify desired intent in a declarative way and then using a consistent workflow to drive continuous deployment through application lifecycle.
One of the core goals of Kusion is to build an open, inclusive and vibrant OSS developer community focused on solving real-world application delivery and management problems, sharing the reusable building blocks and best practices.
This repository contains a catalog of community maintained, shared Kusion Module
resources, which are designed to be usable out of box.
The models/schema
directory contains all KCL schema definitions for application developers, and follows the following structure.
./schema/v1
/accessories ๐ schema definition for various accessory resources
/monitoring ๐ schema definition for monitoring e.g. Promethues
/trait ๐ schema definition for various operation capabilities e.g. OpsRule
/workload ๐ default workload schema definition
app_configuration.k ๐ root AppConfiguration schema definition
Based on the schema definitions, models/samples
directory contains plenty of useful sample code. Here is a simple explanation of those samples.
hellocollaset
- demonstrates how to declare a long-running service, and the workload implementation of this service isCollaset
, which is provided by KusionStack Operating.helloworld
- also declare a long-running service, with default Kubernetes Deployment workload.pgadmin
- declares a cloud provider managed Postgres resource, as well as a long-running service withdpage/pgadmin4:latest
image.samplejob
- demonstrates how to declare a periodic job.wordpress
- declares a cloud provider managed MySQL resource, as well as a long-running service withwordpress:6.3
image.