Skip to main content
Deploy Kubernetes previews with enterprise-grade security and performance. Namespace’s Kubernetes Previews enable development teams to test applications in isolated, ephemeral clusters that mirror production environments, accelerating feature development while maintaining operational standards.

Getting Started

1

Create a preview cluster

  1. Using the CLI, log into your workspace. If you’re accessing Namespace from a cloud provider or your CI platform, we recommend to set up workflow federation instead.
  2. Create a Kubernetes cluster to host your preview.
    Output
2

Apply your Kubernetes configuration

  1. Point your local kubectl to the preview cluster.
  2. Deploy your application to the preview.
3

Expose your application

  1. Expose a service of type LoadBalancer to wire access to your application.
  2. Expose your service with Namespace.
    Output

How it works

Namespace preview clusters build on Namespace Compute to deliver interactive access to a flexible, isolated test environment. When creating an instance, Namespace provisions a ready-to-use Kubernetes cluster in it and provides seamless access to the Kubernetes API. You can deploy and expose your applications using your existing tooling. Namespace will generate public, authenticated ingress URLs using managed TLS certificates, whether you use a Namespace-provided app domain, or employ custom domain configurations. Namespace ingresses preserve original headers for application-level routing and support path-based and header-based routing within your application.

Kubernetes API access

Namespace previews provide full access to the Kubernetes API under test. To configure your local kubectl client to access the remote test environment, use our CLI to produce and apply a kubeconfig.
Output
To access the Kubernetes API without reconfiguring your local client, use the inline kubectl integration:

Monitoring and Debugging

By building on Namespace Compute, you directly benefit from its comprehensive observability features providing deep insights into preview environment performance and behavior.
  • Real-time Logging Access centralized logs from all pods, from the CLI or the Dashboard.
  • Performance Monitoring Track resource utilization and network performance.
In case Kubernetes API access is not sufficient, Namespace also grants root SSH access to each instance, allowing you to inspect the underlying infrastructure powering the preview.

Wildcard Ingresses

For complex applications requiring multiple endpoints or dynamic routing, Namespace supports wildcard ingress configurations. Wildcard ingresses excel in scenarios requiring microservice architectures with dynamic service discovery and when testing API gateways managing multiple backend services.
1

Enable wildcard support

Create a cluster with wildcard ingress capability.
This outputs the ID of the created cluster, e.g.: 072higp5dg0bg
2

Deploy and expose your applications

3

Configure a wildcard ingress

After creating a wildcard ingress, all subdomain traffic is routed to your specified service: *.<instance-id>.<region>.namespaced.app

Automatic Previews

Namespace’s Kubernetes Ingress Manager automates preview creation through service annotations, eliminating manual exposure commands and integrating preview generation directly into your deployment pipeline.
1

Enable the ingress manager

Create a preview cluster, enable the ingress manager and point your local kubectl to it.
Outputs the ID of the created cluster, e.g.: dr9flh12238uk
Output
Save the generated kubeconfig path, then configure kubectl to use it.
2

Annotation-based service exposure

Control preview generation through Kubernetes service annotations:
3

Verify the exposed ingress

Output

Annotation Reference

Autoscaling Clusters

Namespace Kubernetes Previews can scale cluster resources based on workload demands, ensuring optimal performance while controlling costs. Horizontal cluster scaling is performed automatically through a workspace-private network (VPC) as an increase in required resources is detected. Note: Automatic cluster scaling is not enabled by default. Contact our support to get enrolled.
Last modified on August 20, 2026