Skip to content

labring-actions/templates

Repository files navigation

Sealos Template Repository

简体中文 | Quick Deploy

This repository is the source for Sealos App Store templates. Use the published templates to deploy applications quickly, or add a new template/<app-name>/ directory to contribute an application template.

🚀 Quick Start

Deploy Your First App

  1. Browse available templates in the Sealos App Store or the template/ directory.
  2. Open the template documentation and click the "Deploy on Sealos" button.
  3. Configure and deploy by filling in the required parameters.

Template authoring quick links:

  • Start from template.yaml and place the finished file at template/<app-name>/index.yaml.
  • Add README.md, README_zh.md, an icon, and website-screenshot.webp next to the template file.
  • Built-in variables/functions use GitHub Actions-style syntax; see example.md.
  • A complete FastGPT example and database Cluster YAML examples (MongoDB/PostgreSQL/MySQL/Redis/Kafka/Milvus/ClickHouse) are in example.md.

Your app will be running in minutes.

Popular Templates

Template Description Deploy
FastGPT Build your own knowledge base with AI Deploy
ChatGPT-Next-Web ChatGPT web UI with your own API key Deploy
Code-Server VS Code in your browser Deploy
Cloudreve Cloud storage system Deploy
Appsmith Low-code app builder Deploy

View all templates →

📚 Documentation

🛠️ How to Create a Template

Create a template by adding a directory under template/<app-name>/. Each template directory should contain the deployable YAML, user-facing documentation, and visual assets used by the App Store.

1. Start from a template reference

Copy template.yaml into a new app directory:

mkdir -p template/my-app
cp template.yaml template/my-app/index.yaml

Update the metadata, image references, inputs, resource names, readme links, icon, and screenshot URLs for your application.

2. Add the required files

A complete template directory usually includes:

template/my-app/
├── index.yaml
├── README.md
├── README_zh.md
├── logo.png
└── website-screenshot.webp

Use logo.svg or another image format when it fits the upstream project asset better. Keep the English and Chinese READMEs focused on how the deployed app is used on Sealos.

3. Understand the structure

Template files are divided into two main parts:

  • Metadata CR: Template information, default values, and user inputs
  • Kubernetes Resources: StatefulSet, Service, Ingress, etc.

For detailed explanation, see example.md.

4. Use variables and functions

The system provides built-in environment variables and functions. Use GitHub Actions-like syntax:

# System built-in variable
${{ SEALOS_NAMESPACE }}

# Function to generate random string
${{ random(8) }}

# User input variable
${{ inputs.your_parameter }}

See Built-in system variables and functions for complete reference.

5. Review a complete example

The FastGPT example demonstrates how to create a complete template with:

  • Default application name and hostname
  • User-configurable inputs (API key, password, database type)
  • Multiple Kubernetes resources (database, application, ingress)

🔗 Use "Deploy on Sealos" Button

You can add a "Deploy on Sealos" button to your project's README:

Markdown

[![](https://sealos.io/Deploy-on-Sealos.svg)](https://sealos.io/products/app-store/your-app-name)

HTML

<a href="https://sealos.io/products/app-store/your-app-name">
  <img src="https://sealos.io/Deploy-on-Sealos.svg" alt="Deploy on Sealos"/>
</a>

Replace your-app-name with your template's metadata.name from the Template CR.

🤝 Contributing

We welcome contributions! Follow these steps:

  1. Fork this repository
  2. Create a branch for your template or improvement
  3. Add or update one template/<app-name>/ directory
  4. Test your template on Sealos before submitting
  5. Submit a pull request with a clear description and verification notes

Template Guidelines

  • Naming: Use lowercase, hyphen-separated names (e.g., my-awesome-app)
  • Description: Write clear, concise descriptions
  • Documentation: Include English and Chinese usage instructions
  • Assets: Include an icon and a current application screenshot
  • Defaults: Provide sensible default values for all inputs
  • Resources: Set reasonable resource limits (CPU/memory)

📖 Resources

📄 License

This repository follows the Sealos project license.

About

No description, website, or topics provided.

Resources

Contributing

Stars

42 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors