-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update kusion docs of v0.11.1 (#475)
* feat: update quickstart and guide for cloud rds (#465) * docs: update concepts doc for project, stack, workspace (#468) * feat: update kusion quickstart doc and database user guide (#470) * docs: update project&stack file reference (#471) * docs: update cmd reference (#472) * docs: update kusion vs other software (#474) --------- Co-authored-by: Forest <forest10161016@gmail.com> Co-authored-by: TonyAdo <71679464+adohe@users.noreply.github.com>
- Loading branch information
1 parent
185537c
commit 0886e82
Showing
77 changed files
with
777 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
--- | ||
id: configuration | ||
sidebar_label: Project Configuration | ||
sidebar_label: Project file reference | ||
--- | ||
|
||
# Project Configuration | ||
# Kusion project file reference | ||
|
||
Users can add config items of the project in `project.yaml`, such as the project name, generator type, Prometheus monitoring, etc. | ||
Every Kusion project has a project file, `project.yaml`, which specifies metadata about your project, such as the project name and project description. The project file must begin with lowercase `project` and have an extension of either `.yaml` or `.yml`. | ||
|
||
Here is an example of `project.yaml`. | ||
## Attributes | ||
|
||
```yaml | ||
# The project basic info | ||
name: helloworld | ||
generator: | ||
type: AppConfiguration | ||
prometheus: | ||
operatorMode: True | ||
monitorType: Service | ||
``` | ||
| Name | Required | Description | Options | | ||
|:------------- |:--------------- |:------------- |:------------- | | ||
| `name` | required | Name of the project containing alphanumeric characters, hyphens, underscores. | None | | ||
| `description` | optional | A brief description of the project. | None | | ||
| `extensions` | optional | List of extensions on the project. | [See blow](#extensions) | | ||
|
||
The config items in `project.yaml` are explained below. | ||
### Extensions | ||
|
||
- **name**: The name of the project | ||
- **generator**: | ||
- `type`: The type of the module generator, supports `AppConfiguration` and `KCL`, default is `AppConfiguration`. If using the schema AppConfiguration, set type as AppConfiguration | ||
- **prometheus**: | ||
- **operatorMode**: Decides whether Kusion runs Prometheus in `Operator` mode. Kusion will generate a `Custom Resource` if it is true, while generate some annotations if it is false | ||
- **monitorType**: The type of the monitored resource, which can be one of `Service` or `Pod` | ||
Extensions allow you to customize how resources are generated or customized as part of release. | ||
|
||
#### kubernetesNamespace | ||
|
||
The Kubernetes namespace extension allows you to customize namespace within your application generate Kubernetes resources. | ||
|
||
| Key | Required | Description | Example | | ||
|:------|:--------:|:-------------|:---------| | ||
| kind | y | The kind of extension being used. Must be 'kubernetesNamespace' | `kubernetesNamespace` | | ||
| namespace | y | The namespace where all application-scoped resources generate Kubernetes objects. | `default` | |
Oops, something went wrong.