Apollo GraphOS Operator
Deploy and manage GraphQL supergraphs in Kubernetes with the Apollo GraphOS Operator
The Apollo GraphOS Operator is a Kubernetes-native operator for deploying and managing GraphQL federated architectures. It lets you define your GraphQL services (subgraphs) and compose them into a supergraph using Kubernetes resources. The operator integrates with Apollo GraphOS and your existing Kubernetes workflows, deploys the GraphOS Router, automates schema publishing, composition, deployment, and monitoring.
Key Benefits
Declarative Management: Define subgraphs, supergraphs, and composition rules as Kubernetes resources.
Flexible Workflows: Use Kubernetes manifests or Apollo Studio for management. Supports single-cluster, multi-cluster, and hybrid setups.
Automated CI/CD: Automatically detects schema changes, triggers composition, and deploys updated supergraphs.
Integrated Monitoring: Status and health are surfaced via Kubernetes events and resource statuses, compatible with tools like Datadog.
Security Best Practices: Supports namespace-scoped RBAC, API key management, and secure deployment patterns.
How the Apollo GraphOS Operator Works
Core Components
The Operator manages three main Kubernetes resources:
Subgraph: Defines a GraphQL subgraph with its schema and endpoint
SupergraphSchema: Selects Subgraphs and composes them into a supergraph schema
Supergraph: Deploys the composed schema as a running router
The Composition Flow
What happens:
The Operator watches Subgraph resources and extracts their schemas
SupergraphSchema uses label selectors to find relevant Subgraphs
The Operator publishes selected subgraphs to Apollo GraphOS
Apollo GraphOS composes the supergraph schema
The Operator fetches the composed schema and deploys it via Supergraph / Router
Key Architectural Concepts
Subgraph Discovery
Subgraphs are discovered using Kubernetes label selectors
The Operator monitors Subgraph resources in real-time
Schema changes trigger automatic re-composition
Source of Truth
Cluster: The Operator is the source of truth for subgraph membership: only subgraphs defined as Kubernetes Subgraph resources that match the SupergraphSchema selectors are included; any others in Studio are removed.
Cluster & Studio: The overall composition is defined as the union of all subgraphs present in both Studio and the cluster. If you currently have subgraphs managed by Studio with missing Kubernetes Subgraph resources, use both the cluster and Studio as the source of truth. Set
partial: truein your workflow to enable this.
See Composition Strategies for more details.
Schema Sources
Inline SDL: Schema defined directly in the Subgraph resource
OCI Image: Schema loaded from container images
OCI Artifact: Schema loaded from OCI registry artifacts
See Choose your schema source for more details.
Get Started
Ready to try it out? Follow the Getting Started guide.