Loft CLI For Namespace Management

A Powerful CLI For Kubernetes Self-Service

Most engineers prefer to work with Loft via the CLI because it allows them to create new namespaces and virtual clusters directly from the terminal of their IDE, immediately retrieve a local kube-context and start interacting with their Kubernetes environments.

loft create space dev-api-server
Creating namespace...
Applying security templates to namespace...
Space 'dev-api-server' successfully created.
Loft has created a kube-context on your local machine to access this namespace. It is the current kube-context now.
kubectl get pods       # no need for --namespace
No pods in namespace dev-api-server
kubectl create deployment nginx-deployment --image=nginx
deployment.apps/nginx-deployment created
kubectl get pods
NAME                                READY   STATUS    RESTARTS   AGE
nginx-deployment-84cd76b964-mnvzz   1/1     Running   0          10m
loft list spaces
Name             Cluster             Sleeping   Status   Age   
dev-api-server   dev-eks-us-west-1   false      Active    14d
team-space-1     dev-eks-us-west-2   2h36m      Active    11d
ml-gpu-exp-4     aks-us-east-1       1h40m      Active    30d
loft delete space dev-api-server
Deleting namespace
Space 'dev-api-server' successfully deleted.
Successfully deleted kube context for space 'dev-api-server' from your local .kube/config file.

Manage everything with kubectl

Loft's "Spaces" act as a virtual abstraction of Kubernetes namespaces ensure consistency and security.

Loft introcuces the Space as a custom resource. Spaces are virtual, so they don't actually get persisted in etcd but only exist as a virtual abstraction on top of regular namespaces. This has the benefit that there is no duplication but at the same time, you can manage spaces with kubectl just like regular Kubernetes namespaces but without the need to give users access to real namespaces or other cluster-wide resources.

Get Started

Ephemeral Kubernetes Environments For Any Use Case

Preview Environments For Pull Requests
Kubernetes-Based
Dev Environments
Ephemeral Environments