...
1label: Config Connector ComputeInstanceTemplate
2markdownDescription: Creates yaml for a ComputeInstanceTemplate resource
3insertText: |
4 apiVersion: compute.cnrm.cloud.google.com/v1beta1
5 kind: ComputeInstanceTemplate
6 metadata:
7 labels:
8 \${1:env}: \${2:dev}
9 name: \${3:computeinstancetemplate-name}
10 spec:
11 description: \${4:a sample instance template}
12 tags:
13 - \${5:foo}
14 - \${6:bar}
15 instanceDescription: \${7:a sample instance created from the sample instance template}
16 machineType: \${8:n1-standard-1}
17 region: \${9:us-west1}
18 disk:
19 - sourceDiskRef:
20 name: \${10:instancetemplate-dep}
21 autoDelete: \${11:false}
22 boot: \${12:true}
23 - sourceImageRef:
24 name: \${13:instancetemplate-dep}
25 autoDelete: \${14:true}
26 boot: \${15:false}
27 diskName: \${16:sample-attached-disk}
28 deviceName: \${17:attachment}
29 interface: \${18:SCSI}
30 diskType: \${19:pd-ssd}
31 diskSizeGb: \${20:10}
32 type: \${21:PERSISTENT}
33 networkInterface:
34 - networkRef:
35 name: \${22:instancetemplate-dep}
36 subnetworkRef:
37 name: \${23:instancetemplate-dep}
38 networkIp: \${24:10.2.0.1}
39 aliasIpRange:
40 - ipCidrRange: \${25:/16}
41 subnetworkRangeName: \${26:sub-range}
42 canIpForward: \${27:false}
43 scheduling:
44 automaticRestart: \${28:true}
45 onHostMaintenance: \${29:MIGRATE}
46 preemptible: \${30:false}
47 metadataStartupScript: \${31:echo hi > /test.txt}
48 serviceAccount:
49 serviceAccountRef:
50 name: \${32:instancetemplate-dep}
51 scopes:
52 - \${33:userinfo-email}
53 - \${34:compute-ro}
54 - \${35:storage-ro}
55 guestAccelerator:
56 - type: \${36:nvidia-tesla-k80}
57 count: \${37:1}
58 minCpuPlatform: \${38:Intel Skylake}
59 shieldedInstanceConfig:
60 enableSecureBoot: \${39:false}
61 enableVtpm: \${40:true}
62 enableIntegrityMonitoring: \${41:true}
View as plain text