...
1label: Config Connector ComputeInstance
2markdownDescription: Creates yaml for a ComputeInstance resource
3insertText: |
4 apiVersion: compute.cnrm.cloud.google.com/v1beta1
5 kind: ComputeInstance
6 metadata:
7 labels:
8 \${1:created-from}: \${2:image}
9 \${3:network-type}: \${4:subnetwork}
10 name: \${5:computeinstance-name}
11 spec:
12 machineType: \${6:n1-standard-1}
13 zone: \${7:us-west1-a}
14 bootDisk:
15 initializeParams:
16 size: \${8:24}
17 type: \${9:pd-ssd}
18 sourceImageRef:
19 external: \${10:debian-cloud/debian-11}
20 networkInterface:
21 - subnetworkRef:
22 name: \${11:computeinstance-dep-cloudmachine}
23 aliasIpRange:
24 - ipCidrRange: \${12:/24}
25 subnetworkRangeName: \${13:cloudrange}
26 attachedDisk:
27 - sourceDiskRef:
28 name: \${14:computeinstance-dep1-cloudmachine}
29 mode: \${15:READ_ONLY}
30 deviceName: \${16:proxycontroldisk}
31 diskEncryptionKeyRaw:
32 valueFrom:
33 secretKeyRef:
34 name: \${17:computeinstance-dep-cloudmachine}
35 key: \${18:diskEncryptionKey}
36 - sourceDiskRef:
37 name: \${19:computeinstance-dep2-cloudmachine}
38 mode: \${20:READ_WRITE}
39 deviceName: \${21:persistentdisk}
40 minCpuPlatform: \${22:Intel Skylake}
41 serviceAccount:
42 serviceAccountRef:
43 name: \${23:inst-dep-cloudmachine}
44 scopes:
45 - \${24:compute-rw}
46 - \${25:logging-write}
View as plain text