LogoLogo
  • Welcome to Release
  • Getting started
    • Quickstart
    • Create an account
    • Prepare to use Release
    • Create an application
      • Create custom application
      • Create from template
      • Servers vs runnables
    • Create an environment
  • Guides and examples
    • Domains and DNS
      • Manage domains
      • DNS and nameservers
        • Configure GoDaddy
        • Configure Cloudflare
        • Configure Namecheap
        • Other DNS hosts
      • Routing traffic
    • Example applications
      • Full stack voting app
      • Flask and RDS counter app
      • Static site with Gatsby
      • Golang with Postgres and Nginx
      • WordPress with MySQL
      • Spring and PostgreSQL
      • Terraform and Flask
      • OpenTelemetry demo
      • Load balancer with hostname
      • Static JavaScript service
      • SSH bastion access to services
      • ngrok and OAuth for private tunnels
      • Using OAuth Proxy
      • Hybrid Docker and static site
      • App Imports: Connecting two applications
      • Example library
    • Running instances
      • Cron jobs
      • Jobs
      • Using Helm charts
      • Using terminal
      • Viewing logs
      • Troubleshooting
        • ImagePullBackoff error
        • CrashLoopBackoff error
        • Exit codes
        • OOM: out of memory
    • Advanced guides
      • Containers guide
      • Application guide
      • Kubernetes guide
      • Create a cluster
      • Upgrade a cluster
      • Managing node groups
      • Patch node groups
      • Hostnames and rules
      • Serve traffic on multiple ports
      • Configure access to your K8s cluster
      • Designing for multiple environments
      • Microservices architecture
      • Monitoring your clusters
      • Performance tuning
      • Visibility and monitoring
      • Working with data
        • Container-based data
        • Seeding and migration
        • Cloud-provided data
        • Golden images
        • Third party
      • Pausing Instant Datasets
        • Application pausing schedules
        • Pause/resume environments
      • Infrastructure as code
        • Terraform
  • Reference documentation
    • Account settings
      • Account info
      • Managing users
      • Build settings
        • Build arguments
        • Build SSH keys
      • Add integrations
      • View clusters and cloud integrations
      • Add datasets
      • Environment handles
    • Workflows in Release
      • Stages of workflows
      • Serial deployments
      • Parallel deployments
      • Rolling deployments
      • Rainbow deployments
    • Networking
      • Network architecture (AWS)
      • Network architecture (GCP)
      • Ingresses
      • IP addresses
      • Cloud-provided services
      • Third-party services
    • Release environment versioning
    • Application settings
      • Application Template
        • Schema definition
      • Default environment variables
      • GitHub
      • Pull requests
      • GitOps
      • Just-in-time file mounts
      • Primary App Link
      • Create application FAQ
      • App-level build arguments
      • Parameters
      • Workspaces
    • End-to-end testing
    • Environment settings
      • Environment configuration
      • Environment variables
        • Environment variable mappings
        • Secrets vaults
        • Using Secrets with GitOps
        • Kubernetes Secrets as environment variables
        • Managing legacy Release Secrets
    • Environment expiration
    • Environment presets
    • Instant datasets on AWS
    • Instant datasets on GCP
    • Instant dataset tasks
      • Tonic Cloud
      • Tonic On-Premise
    • Cloud resources
    • Static service deployment
    • Helm
      • Getting started
      • Version-controlled Helm charts
      • Open-source charts
      • Building Docker images
      • Ingress and networking
      • Configuration
    • GitOps
    • The .release.yaml file
    • Docker Compose conversion support
    • Reference examples
      • Adding and removing services
      • Managing service resources
      • Adding database containers to the Application Template
      • Stock Off-The-Shelf Examples
    • Release API
      • Account Authentication
      • Environments API
        • Create
        • Get
        • Setup
        • Patch
      • User Authentication
      • Environment Presets API
        • Get Environment Preset List
        • Get Environment Preset
        • Put Environment Preset
  • Background concepts
    • How Release works
  • Frequently asked questions
    • Release FAQ
    • AWS FAQ
    • Docker FAQ
    • JavaScript FAQ
  • Integrations
    • Integrations overview
      • Artifactory integration
      • Cloud integrations (AWS)
        • AWS guides
        • Grant access to AWS resources
        • AWS how to increase EIP quota
        • Control your EKS fleet with systems manager
        • Managing STS access
        • AWS Permissions Boundaries
        • Private ECR Repositories
        • Using an Existing AWS VPC
        • Using an Existing EKS Cluster
      • Docker Hub integration
      • LaunchDarkly integration
      • Private registries
      • Slack integration
      • Cloud integrations (GCP)
        • GCP Permissions Boundary
      • Datadog Agent
      • Doppler Secrets Manager
      • AWS Secrets Management
    • Source control integrations
      • GitHub
        • Pull request comments
        • Pull request labels
        • GitHub deployments
        • GitHub statuses
        • Remove GitHub integration
      • Bitbucket
      • GitLab
    • Monitoring and logging add-ons
      • Datadog
      • New Relic
      • ELK (Elasticsearch, Logstash, and Kibana)
  • Release Delivery
    • Create new customer integration
    • Delivery guide
    • Release to customer account access controls
    • Delivery FAQs
  • Release Instant Datasets
    • Introduction
    • Quickstart
    • Security
      • AWS Instant Dataset security
    • FAQ
    • API
  • CLI
    • Getting started
    • Installation
    • Configuration
    • CLI usage example
    • Remote development environments
    • Command reference
      • release accounts
        • release accounts list
        • release accounts select
      • release ai
        • release ai chat
        • release ai config-delete
        • release ai config-init
        • release ai config-select
        • release ai config-upsert
      • release apps
        • release apps list
        • release apps select
      • release auth
        • release auth login
        • release auth logout
      • release builds
        • release builds create
      • release clusters
        • release clusters exec
        • release clusters kubeconfig
        • release clusters shell
      • release datasets
        • release datasets list
        • release datasets refresh
      • release deploys
        • release deploys create
        • release deploys list
      • release development
        • release development logs
        • release development start
      • release environments
        • release environments config-get
        • release environments config-set
        • release environments create
        • release environments delete
        • release environments get
        • release environments list
        • release environments vars-get
      • release gitops
        • release gitops init
        • release gitops validate
      • release instances
        • release instances exec
        • release instances logs
        • release instances terminal
  • Release.ai
    • Release.ai Introduction
    • Getting Started
    • Release.ai Templates
    • Template Configuration Basics
    • Using GPU Resources
    • Custom Workflows
    • Fine Tuning LlamaX
    • Serving Inference
Powered by GitBook
On this page
  • Overview
  • Defining Parameters
  • Default Values
  • Optional Parameters
  • Advanced Parameters
  • Using Parameters
  • Environment Variables
  • Resource Requests & Limits
  • Workspaces
  • Parameter Types
  • string
  • text
  • boolean
  • git-repo
  • git-ref
  • file

Was this helpful?

  1. Reference documentation
  2. Application settings

Parameters

PreviousApp-level build argumentsNextWorkspaces

Last updated 9 months ago

Was this helpful?

Overview

Parameters allow a user to provide inputs to the Application Template used to customize an environment or runnable job at creation time.

Defining Parameters

Parameters are defined in your app template using the top-level parameters stanza.

For example:

parameters:
  - name: name
    type: string
    description: Enter your name

Parameters require a name, type, and description.

For a complete list of available parameter types, see the .

Default Values

To provide a default value for a parameter:

parameters:
  - name: gpu_count
    type: integer
    description: Number of GPUs
    default: 2

Optional Parameters

To declare a parameter as optional, set optional: true:

parameters:
  - name: not-required
    type: string
    description: I am not required
    optional: true

An optional parameter's value will be null or an empty string dependending on where it's referenced.

Advanced Parameters

If a parameter is infrequently used or is only used in very specific cases, you can mark the parmeter as advanced: true. Advanced parameters are rendered in the "Advanced" section of our UI and are hidden by default.

parameters:
  - name: my-special-param
    type: string
    description: Don't touch unless you know what you're doing!
    advanced: true

An optional parameter's value will be null or an empty string dependending on where it's referenced.

Using Parameters

Parameters can be referenced from most places in your Application Template using this syntax: ${parameters.my_parameter_name}. Here are some common example use cases.

Environment Variables

Injecting a parameter values into environment variables:

parameters:
  - name: worker_threads
    type: integer
    description: Number background worker threads
  - name: db_host
    type: string
    description: Database server hostname

services:
  - name: worker
    envs:
      - key: WORKER_THREADS
        value: ${parameters.worker_threads}
      - key: DB_URL
        value: postgres://${parameters.db_host}:5432/my_db

Resource Requests & Limits

Injecting a parameter values into resource limits:

parameters:
  - name: gpu_count
    type: integer
    description: Number of GPUs

services:
  - name: fine-tuning
    resources:
    nvidia_com_gpu:
      limits: ${parameters.gpu_count}

Workspaces

This allows dynamically picking a file or Git repository that can be accessible from a known location from within your containers.

Example:

parameters:
  - name: source_repo
    type: git-repo
  - name: training_data
    type: file

workspaces:
  - name: default
    auto_attach: true
    path: /workspace
    mounts:
      - path: repo
        source_url: ${parameters.source_repo}
      - path: training-data
        source_url: ${parameters.training_data}

jobs:
  - name: run-training
    envs:
      - key: TRAINING_DATA_PATH
        value: /workspace/training-data
      - key: REPO_PATH
        value: /workspace/repo

This will show a Git repository picker and a file upload picker in the UI when creating a job or environment for this application allowing the user to customize which code or data is made available to the job.

Parameter Types

string

To define a single line string input:

parameters:
  - name: name
    type: string
    description: Enter your name

text

To define a multiline text parameter:

parameters:
  - name: long-text
    type: text
    description:

boolean

To define a boolean checkbox parameter:

parameters:
  - name: debug
    type: boolean
    description: Enable debug mode

The values when interpolated as a string (i.e. in an environment variable) will be either true or false.

git-repo

To define a Git repository picker parameter:

parameters:
  - name: repo
    type: git-repo
    description: Choose a Git repository

Git repo parameters are also usable from workspace mounts.

git-ref

To define a Git ref picker parameter:

parameters:
  - name: ref
    type: git-ref
    description: Choose a Git repository and branch

This is similar to git-repo but instead of using the repository's default branch, it allows the user to select a specific branch, tag, or commit.

Git ref parameters are also usable from workspace mounts.

file

To define a file picker parameter:

parameters:
  - name: my-file
    type: file
    description: Upload or select a file

This will allow the user to either upload a new file or choose an previously uploaded file.

File parameters are also usable from workspace mounts.

Parameters are designed to work well with . For example the git-ref, git-repo, and file parameter types all produce result in values that can be referenced directly from a workspace mount.

This will only allow selecting a repository that has been registered with Release. See for more details.

Workspaces
source control integrations
schema definition