feat: add docs to main (#1559)
This commit is contained in:
48
docs/developer/develop/package/chart.md
Normal file
48
docs/developer/develop/package/chart.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# Olares Application Chart Structure
|
||||
|
||||
The Olares Application Chart is built upon the structure of **Helm Chart**, with extensions to accommodate specific **Olares** information. A standard application chart contains the following files:
|
||||
```
|
||||
|-- Chart.yaml # chart metadata
|
||||
|-- OlaresManifest.yaml # Olares Application configuration
|
||||
|-- templates/ # chart deployment template files
|
||||
| |-- deployment.yaml # APP deployment script
|
||||
|-- crds/ # OPTIONAL: Custom Resource Definitions
|
||||
|-- values.yaml # OPTIONAL: The default deployment parameters for this chart
|
||||
|-- values.schema.json # OPTIONAL: A JSON Schema for imposing a structure on the values.yaml file
|
||||
|-- README.md # OPTIONAL: A human-readable README file
|
||||
```
|
||||
:::info NOTE
|
||||
To make the templates directory easier to understand, you can split the deployment into several files.
|
||||
:::
|
||||
|
||||
- A typical application chart for `App` and `Middleware`:
|
||||
```
|
||||
AppName
|
||||
|-- Chart.yaml # Required: YAML file containing chart metadata
|
||||
|-- OlaresManifest.yaml # Required: containing App configuration
|
||||
|-- values.yaml # Required: default configuration values of the chart
|
||||
|-- templates # Required: template directory, when combined with values, it can generate valid Kubernetes manifest files
|
||||
| |-- NOTES.txt # Optional: plain text file containing brief usage instructions
|
||||
| |-- deployment.yaml # Defines the deployment for App installation
|
||||
| |-- service.yaml # Defines the Service that provides the Entrance for the App
|
||||
| |-- provider.yaml # Optional: if you need to expose the Provider API
|
||||
|-- LICENSE # Optional: plain text file containing the chart license
|
||||
|-- README.md # Optional: readable README file
|
||||
```
|
||||
|
||||
- A typical application chart for `Recommend`:
|
||||
|
||||
```
|
||||
RecommendName
|
||||
|-- Chart.yaml # Required: YAML file containing chart metadata
|
||||
|-- OlaresManifest.yaml # Required: containing Recommend configuration
|
||||
|-- values.yaml # Required: default configuration values of the chart
|
||||
|-- templates # Required: template directory, when combined with values, it can generate valid Kubernetes manifest files
|
||||
| |-- NOTES.txt # Optional: plain text file containing brief usage instructions
|
||||
| |-- train.yaml # Defines the train process in recommend workflows
|
||||
| |-- prerank.yaml # Defines the prerank process in recommend workflows
|
||||
| |-- rank.yaml # Defines the rank process in recommend workflows
|
||||
| |-- embedding.yaml # Defines the embedding process in recommend workflows
|
||||
|-- LICENSE # Optional: plain text file containing the chart license
|
||||
|-- README.md # Optional: readable README file
|
||||
```
|
||||
Reference in New Issue
Block a user