liveBook · Manning

Vcluster

As explained in Platform Engineering on Kubernetes

vcluster is an open-source tool for creating virtual Kubernetes clusters within a host Kubernetes cluster.

vcluster creates virtual Kubernetes clusters inside a host Kubernetes cluster. It isolates tenants at the Kubernetes API-server level, giving development teams cluster-like control without requiring a separate physical cluster. section 6.3.1

Use vcluster when teams need isolated Kubernetes environments:

  • Provide each tenant with an isolated Kubernetes API server and freedom to install tools without affecting other tenants. section 6.3 section 6.3.1
  • Choose vcluster when teams require cluster-wide Kubernetes API access; use namespaces when that access is unnecessary. section 6.3.1
  • Create a virtual cluster with the vcluster Helm chart or use the vcluster CLI to create and connect to one. section 6.3.1

Provision and connect to a development environment

A platform can accept an Environment resource, use a Crossplane composition with the Crossplane Helm provider to provision a vcluster, and install the Conference application by default. Teams can inspect readiness with `kubectl get environments`, then connect with `vcluster connect team-a-dev-env-jp7j4 --server https://localhost:8443 -- zsh`. section 6.3.2

How Platform Engineering on Kubernetes covers it

How deep it goes
Explains API-server isolation, creation methods, tenant choice, and platform integration, but does not detail vcluster internals.
Examples
Uses Environment resources, Crossplane compositions, kubectl status output, and the vcluster connect command.
What it assumes
Assumes familiarity with Kubernetes clusters and APIs while demonstrating environment provisioning through Crossplane and Helm.
What you can do after
Operate/configure isolated development clusters through Helm, the vcluster CLI, kubectl, and platform APIs.
How it connects
Connects virtual clusters with Kubernetes namespaces, Kubernetes clusters, Crossplane compositions, Helm, and multi-tenancy.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Platform Engineering on Kubernetes. The section links point to the parts of the book it draws on.