2V0-71-21 practice question 2 of 15

What is the command to find out the available node base operating system images?

Full set: 55 questions
Answer options
A: kubectl get nodes
B: kubectl cluster-info
C: kubectl get virtualmachineclasses
D: kubectl get virtualmachineimages Correct answer
Correct Answer:
D. kubectl get virtualmachineimages
Explanation

In a vSphere with Tanzu environment, the base operating system images for creating Tanzu Kubernetes cluster nodes are managed as Kubernetes custom resources of the kind VirtualMachineImage. These images are synchronized from a vSphere Content Library that is subscribed to VMware's official repository. To list the OS images that are available for provisioning new nodes, an administrator connects to the Supervisor Cluster and uses the command kubectl get virtualmachineimages. This command queries the API server and returns a list of available images, their versions, and their readiness status.

Why Incorrect

A. kubectl get nodes: This command lists the currently running control plane and worker nodes within a Kubernetes cluster, not the available base images for creating them.
B. kubectl cluster-info: This command displays the addresses of the control plane and services within the cluster, used for verifying cluster connectivity.
C. kubectl get virtualmachineclasses: This command lists available sizing templates (CPU, memory, etc.) for virtual machines, not the operating system images they run.

References

1. VMware vSphere 8.0 Documentation, vSphere with Tanzu Configuration and Management, "Check the Available VM Images and Classes". This section explicitly states: "To see the available virtual machine images, run the kubectl get virtualmachineimages command." It also provides an example output showing different OS images like Ubuntu and Photon.

2. VMware vSphere 8.0 Documentation, vSphere with Tanzu Configuration and Management, "VirtualMachineImage and VirtualMachineClass Custom Resources". This document defines the VirtualMachineImage as a custom resource that "represents a virtual machine image from the Content Library that can be used for deploying a Tanzu Kubernetes cluster." This confirms that kubectl get virtualmachineimages is the correct command to query for these specific resources.

3. VMware vSphere 7.0 Documentation, vSphere with Tanzu Concepts and Planning, "Tanzu Kubernetes Grid Service". In the section describing the service, it details the components, including the Content Library for storing VM images (Tanzu Kubernetes releases) and the custom resources (VirtualMachineImage, VirtualMachineClass) used to represent them within Kubernetes, reinforcing the purpose of the command in option D.

Scroll to Top