Core Concepts · How it works

1 min read
Mid-level2 min read
Rapid overview

How it works

Core Concepts

Basic Tiltfile Structure

# Tiltfile

# Load extensions
load('ext://restart_process', 'docker_build_with_restart')

# Define Kubernetes resources
k8s_yaml('kubernetes/deployment.yaml')

# Build Docker image and deploy
docker_build('myapp', '.')

# Configure resource behavior
k8s_resource('myapp', port_forwards='8080:80')

Key Functions

FunctionPurpose
docker_build()Build Docker image from Dockerfile
k8s_yaml()Apply Kubernetes manifests
k8s_resource()Configure a Kubernetes resource
local_resource()Run local commands (tests, builds)
helm()Deploy Helm charts

See also