scripts/deployment/mig/igm.yaml (16 lines of code) (raw):

# Copyright 2019 Google Inc. All rights reserved. # # 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. imports: - path: igm.jinja resources: - name: igm type: igm.jinja properties: region: us-central1 maxNumReplicas: 5 image: https://www.googleapis.com/compute/v1/projects/your-project-id/global/images/your-image-name machineType: n1-standard-1 value: gs://your-bucket-name/versions/demo/startup.sh targetSize: 2 externalIp: False email: default network: https://www.googleapis.com/compute/v1/projects/your-project-id/global/networks/your-project-id-dev-vpc subnetwork: https://www.googleapis.com/compute/v1/projects/your-project-id/regions/us-central1/subnetworks/subnet-b