Virtual cluster creates an in-memory k8s control-plane which comprises of the following components:
- Kube API Server
- Single node Etcd
- Kube Scheduler
- Ensure that you have installed
envtest
. You can just invoke./hack/setup.sh
to installenvtest
. This will also create alaunch.env
in the project root directory. - Execute
set -o allexport && source launch.env && set +o allexport
this will set key-value pairs populated inlaunch.env
as environment variables.
Start the virtual cluster by running the following command:
go run cmd/main.go [flags]
Flags:
--target-kvcl-kubeconfig
: Path where the kubeconfig to connect to the virtual cluster will be written. Default value is/tmp/kvcl.yaml