...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/samples/resources/computeinstancetemplate/compute_v1beta1_computeinstancetemplate.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/samples/resources/computeinstancetemplate

     1# Copyright 2020 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#     http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15apiVersion: compute.cnrm.cloud.google.com/v1beta1
    16kind: ComputeInstanceTemplate
    17metadata:
    18  name: instancetemplate-sample
    19  labels:
    20    env: "dev"
    21spec:
    22  description: a sample instance template
    23  tags:
    24    - foo
    25    - bar
    26  instanceDescription: a sample instance created from the sample instance template
    27  machineType: n1-standard-1
    28  region: us-west1
    29  disk:
    30    - sourceDiskRef:
    31        name: instancetemplate-dep
    32      autoDelete: false
    33      boot: true
    34    - sourceImageRef:
    35        name: instancetemplate-dep
    36      autoDelete: true
    37      boot: false
    38      diskName: sample-attached-disk
    39      deviceName: attachment
    40      interface: SCSI
    41      diskType: pd-ssd
    42      diskSizeGb: 10
    43      type: PERSISTENT
    44  networkInterface:
    45    - networkRef:
    46        name: instancetemplate-dep
    47      subnetworkRef:
    48        name: instancetemplate-dep
    49      networkIp: "10.2.0.1"
    50      aliasIpRange:
    51        - ipCidrRange: /16
    52          subnetworkRangeName: sub-range
    53  canIpForward: false
    54  scheduling:
    55    automaticRestart: true
    56    onHostMaintenance: "MIGRATE"
    57    preemptible: false
    58  metadataStartupScript: "echo hi > /test.txt"
    59  serviceAccount:
    60    serviceAccountRef:
    61      name: instancetemplate-dep
    62    scopes:
    63      - userinfo-email
    64      - compute-ro
    65      - storage-ro
    66  guestAccelerator:
    67    - type: nvidia-tesla-k80
    68      count: 1
    69  minCpuPlatform: "Intel Skylake"
    70  shieldedInstanceConfig:
    71    enableSecureBoot: false
    72    enableVtpm: true
    73    enableIntegrityMonitoring: true

View as plain text