# 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. apiVersion: compute.cnrm.cloud.google.com/v1beta1 kind: ComputeInstance metadata: annotations: cnrm.cloud.google.com/allow-stopping-for-update: "true" name: computeinstance-sample-networkipref labels: label-one: "value-one" spec: description: an basic instance example machineType: n1-standard-1 zone: us-west1-a bootDisk: sourceDiskRef: name: computeinstance-dep1-networkipref autoDelete: false attachedDisk: - sourceDiskRef: name: computeinstance-dep2-networkipref serviceAccount: serviceAccountRef: name: inst-dep-networkipref scopes: - cloud-platform networkInterface: - networkRef: name: computeinstance-dep-networkipref networkIpRef: kind: ComputeAddress name: computeinstance-dep-networkipref metadataStartupScript: "echo hi > /test.txt" metadata: - key: foo value: bar - key: bar value: baz scheduling: preemptible: true automaticRestart: false onHostMaintenance: TERMINATE