Skip to content
Open Source

Add a template

Create a template that meets the template standards, run local checks, and submit a pull request.

Use a similar template as a reference to create the files, add a smoke check, and run local checks before submitting a pull request.

Use a similar template as a reference to create templates/<id>/template.yaml and manifests.yaml. See Template file format for the file structure.

Use lowercase words separated by hyphens for the template ID, with a maximum length of 49 characters.

Check the template against the Template standards:

  • Pin image versions.
  • Meet Restricted Pod Security requirements.
  • Add an ingress NetworkPolicy for services without a login feature.
  • Set resource limits.
  • Provide backups for stateful data.

Add resource condition checks and HTTP or SQL checks to confirm that the application responds.

Prepare values.json. It must contain a JSON object with a value for every input the template requires.

Run the following commands:

cargo run -p zeabur-catalog -- check
go run ./tools/cmd/catalog template lint -values values.json \
-domain app.example.test -cluster-issuer letsencrypt <id>
go run ./tools/cmd/catalog e2e -tier full <id>

Use git commit -s to create a commit with a sign-off, then submit a pull request.