PreviewHQ
  • Introduction
  • Basics
    • What is Continuous Product Review?
    • What is a Preview Environment?
    • Use Cases
      • Product and Stakeholder Review
      • QA Environments
      • Automated End-to-End Testing
      • Sales Demo Environments
      • Support Training
  • Getting Started
    • Installation
    • Add Configuration
    • Add a Cluster
    • Create a Deployment
      • with a Pull Request
      • with the Dashboard
      • with the CLI
      • with the API
  • Technical Stuff
    • Defining Deployments
      • Helm Charts
      • Kubernetes Manifests
      • [UNRELEASED] Terraform
    • Configuration File
      • Branches
      • Services
      • Chart Repositories
      • Chart Values
      • Docker Registries
      • Images
      • Webhooks
    • Template Strings
    • Using Seed Data
      • Using Shared Data Sources
    • Access Control
      • Preview Application Access
      • Preview Environment Access
    • Using Third-Party Integrations
    • Debugging
    • Current Limitations
  • Sample Applications
    • Emojivoto
    • Guestbook - Helm
    • Guestbook - Manifests
  • misc
    • FAQ
    • Changelog
    • Telemetry Data
    • Links
      • Homepace
      • Dashboard
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

Add Configuration

Basic applications without external dependencies may be able to build without any Preview configuration files, however more-likely-than-not you will need to define some configuration

Preview will always look for its configuration file in .preview/config.yml.

The most likely configuration you will have to provide are service dependencies. Preview is capable of deploying any Helm chart as a dependency, so long as the chart does not violate any current Preview restrictions.

As a basic example, an application which requires a PostgreSQL dependency, accessible with the hostname postgresql, and using a values file at .preview/chart-values/postgresql.yaml would be specified as:

services:
  - service: postgresql
    chart: stable/postgresql
    valuesFile: 'chart-values/postgresql.yaml'
PreviousInstallationNextAdd a Cluster

Last updated 4 years ago

Was this helpful?