anthos-vmruntime/pos-vm.yaml (31 lines of code) (raw):

# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # [START anthosbaremetal_anthos_vmruntime_pos_vm_datavolume_pos_vm_boot_dv] apiVersion: vm.cluster.gke.io/v1 kind: VirtualMachineDisk metadata: name: pos-vm-boot-dv namespace: default spec: size: 80Gi source: http: url: https://storage.googleapis.com/pos-vm-images/pos-vm.qcow2 storageClassName: local-shared # [END anthosbaremetal_anthos_vmruntime_pos_vm_datavolume_pos_vm_boot_dv] --- # [START anthosbaremetal_anthos_vmruntime_pos_vm_virtualmachine_pos_vm] apiVersion: vm.cluster.gke.io/v1 kind: VirtualMachine metadata: name: pos-vm namespace: default spec: compute: cpu: vcpus: 2 memory: capacity: 4Gi disks: - boot: true driver: virtio virtualMachineDiskName: pos-vm-boot-dv interfaces: - name: eth0 default: true networkName: pod-network # [END anthosbaremetal_anthos_vmruntime_pos_vm_virtualmachine_pos_vm]