Skip to main content

The Atlas Kubernetes Operator

The Atlas Kubernetes Operator is a Kubernetes controller that uses Atlas to manage your database schema. Using the Operator you can define the desired schema and apply it to your database using the Kubernetes API.

Quick Start

Treat your database schema as a Kubernetes resource: declare it, version it, and let the cluster keep your database in sync.

Supported Workflows

Atlas supports two types of schema management workflows: declarative and versioned. They are supported by the AtlasSchema and AtlasMigration CRDs respectively.
Declarative Migrations

Manage your schema declaratively by defining the desired state as code, and let Atlas plan and apply the changes using atlas schema apply. To review or approve changes before applying them, use atlas schema plan to pre-plan and approve migrations in advance. To run it end to end, follow the Declarative Quickstart.

Versioned Migrations

Manage your schema changes through versioned migration files. Use the atlas migrate diff command to generate migrations, atlas migrate apply to apply them, and integrate Atlas into your CI/CD pipeline for safe, auditable deployments. To run it end to end, follow the Versioned Quickstart.

GitOps Workflows

Deploy database migrations to Kubernetes with GitOps using Argo CD, Flux CD, Crossplane, or directly from Atlas Cloud's Schema Registry.

Guides