Simple vcluster¶
A minimal vcluster is one Helm release and one three-line values file. The chart brings up an API server pod in the target namespace; that pod is your virtual cluster.
- write the values file.
distro.k8sruns vanilla Kubernetes. - install the chart into its own namespace.
- the control-plane pod comes up in the host namespace.
- vcluster writes a kubeconfig secret
vc-<name>in the same namespace. - connect with the CLI. It starts a background proxy and switches your context into the virtual cluster.
- anything you create here is a virtual object. The pods are synced down and scheduled as real pods on the host, renamed under the vcluster's namespace.
- disconnect to return your context to the host cluster.
- without the CLI, read the exported secret and point
KUBECONFIGat it.
Manifests¶
https://www.vcluster.com/docs/vcluster/deploy/basics https://www.vcluster.com/docs/vcluster/configure/vcluster-yaml/control-plane