Stay organized with collections
Save and categorize content based on your preferences.
The Virtual Machine Manager (VMM) of
Google Distributed Cloud (GDC) air-gapped uses Kubernetes Resource Model (KRM) APIs in its
virtual machine (VM) operations and lifecycle management.
Use the kubectl CLI for the VMM APIs.
Service endpoint
The VMM KRM APIs are provided in two packages depending on zonal deployment or
global deployment.
The API endpoints for the zonal and global VMM APIs are the following,
respectively:
The MANAGEMENT_API_SERVER_ENDPOINT variable is the
endpoint of the Management API server.
Discovery document
Use the kubectl proxy command to open a proxy to the API server on your local
machine. From there, you can access the discovery document at one of the
following URLs:
The following VirtualMachineImageImport file shows the creation of a disk
image from a persistent disk. You choose the persistent
disk from a VirtualMachineDisk list and select it to create the image and get
the size parameter of the source. The same example is on the
Create custom images
page.
apiVersion:virtualmachine.gdc.goog/v1kind:VirtualMachineImageImportmetadata:name:VM_IMAGE_IMPORT_NAME# Name of the VM image you want to import.spec:source:diskRef:name:DISK_NAME# Name of the source disk that you will use to create your image.imageMetadata:name:IMAGE_NAME# Name of your created VM image.operatingSystem:OS_NAME# Name of the image OS.minimumDiskSize:MINIMUM_DISK_SIZE# Disk size in the VM image. It must be greater than or equal to the source disk size. An example value is 20G.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["The Virtual Machine Manager (VMM) in Google Distributed Cloud (GDC) air-gapped uses Kubernetes Resource Model (KRM) APIs for managing virtual machine (VM) operations and their lifecycle."],["VMM APIs are accessed using the `kubectl` CLI tool, with distinct packages for zonal and global deployments."],["The API endpoints for zonal and global VMM are located at `https://MANAGEMENT_API_SERVER_ENDPOINT/apis/virtualmachine.gdc.goog/v1` and `https://MANAGEMENT_API_SERVER_ENDPOINT/apis/virtualmachine.global.gdc.goog/v1`, respectively."],["You can access the discovery document for each deployment using the `kubectl proxy` command with the corresponding URL based on whether it's zonal or global."],["A `VirtualMachineImageImport` example demonstrates creating a disk image from a persistent disk, including details like the source disk name, image name, OS, and minimum disk size."]]],[]]