VMware Fusion and Kubernetes Kind Cluster Integration

VMware Fusion and Kubernetes Kind Cluster Integration

I previously wrote about the use of  “vctl” tool with VMware fusion and, I recently worked with  VMware Fusion and Kubernetes Kind integration to provision a Kind cluster to couple to testings on my own. I felt it was quite easy and thought to publish an article about the VMware Fusion and Kind integration.

When running a container with vctl, it creates a Virtual Machine with a small footprint (lightweight) called a CRX VM. By default, it creates and starts a CRX VM at the creation of the container and shuts down and removed when stopping the container. By default vctl assigns 2GB of RAM for the CRX container node and physical machine should have a 2GB of free memory available. If  you are running a two nodes cluster 4GB physical memory should be available.

To start with, you can start the container runtime with the below command and it will download the kubectl command-line utility, CRX VM, and Kind binary for the operating system.

vctl system start
VMware Fusion and Kubernetes vctl start

It will complete the downloading and start the container runtime for the containers.

VMware Fusion and Kubernetes files downloaded

Read More:

All the docker commands now alias with the vctl and you can run the Kind cluster. 

vctl kind
VMware Fusion and Kubernetes kind

Now you can create the Kind cluster as below, my cluster name is  tc-kind-cluster. You can provide any name as per your needs.

vctl create cluster --name [name_of_the_cluster]
VMware Fusion and Kubernetes create cluster

You can see the cluster status specifying the context or you can set this context as the default context if you  don’t want to specify it in all the commands.

kubectl cluster-info --context [name_of_the_context]
VMware Fusion and Kubernetes cluster info

Standard kubectl commands will be available with the cluster and you and play around with it with your kubernetes knowledge.

VMware Fusion and Kubernetes kubectl commands

You can check the available options with the kind command and if you have multiple clusters you can view them with the kind commands. Also you can build your own node image with kind.

kind get clusters
VMware Fusion and Kubernetes kind help

vctl commands are pretty much alike with the docker commands, only thing I noticed was system df command didn’t work.

VMware Fusion and Kubernetes docker commands

Volumes can also be pruned similar to the standard docker commands.

VMware Fusion and Kubernetes volume prune

Clusters can be deleted with the kind delete command

kind delete clusters --name [name_of_the_cluster]
VMware Fusion and Kubernetes  get clusters

You can also check and remove all the downloaded images

vctl images 
vctl rmi -all
VMware Fusion and Kubernetes images

You can stop the container runtime and detach the volumes attached to the containers with the vctl command

vctl system stop
VMware Fusion and Kubernetes vctl stop

You can see the current resource utilization of the vctl system and delete the “.vctl” folder to save the space of your computer.

VMware Fusion and Kubernetes system info

I think this is really great and super simple to use, I personally, really benefitted with this feature when deploying my test kubernetes clusters on my Mac.

Click to rate this post!
[Total: 2 Average: 5]

Leave a Reply

Your email address will not be published. Required fields are marked *