You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/machine_config_v2.md
+39-7Lines changed: 39 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ Provides a Rancher v2 Machine config v2 resource. This can be used to create Mac
8
8
9
9
The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`.
10
10
11
+
12
+
Starting with Rancher v2.12.0 and above, `google` is also offered as a supported cloud provider.
13
+
11
14
## Example Usage
12
15
13
16
```hcl
@@ -87,13 +90,14 @@ The following arguments are supported:
87
90
88
91
*`generate_name` - (Required/ForceNew) Cluster V2 generate name. The pattern to generate machine config name. e.g generate_name=\"prod-pool1\" will generate \"nc-prod-pool1-?????\" name computed at `name` attribute (string)
*`amazonec2_config` - (Optional) AWS config for the Machine Config V2. Conflicts with `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `openstack_config` and `vsphere_config` (list maxitems:1)
91
-
*`azure_config` - (Optional) Azure config for the Machine Config V2. Conflicts with `amazonec2_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `openstack_config` and `vsphere_config` (list maxitems:1)
92
-
*`digitalocean_config` - (Optional) Digitalocean config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `harvester_config`, `linode_config`, `openstack_config` and `vsphere_config` (list maxitems:1)
93
-
*`harvester_config` - (Optional) Harvester config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `linode_config`, `openstack_config` and `vsphere_config` (list maxitems:1)
94
-
*`linode_config` - (Optional) Linode config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `openstack_config` and `vsphere_config` (list maxitems:1)
95
-
*`openstack_config` - (Optional) Openstack config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config` and `vsphere_config` (list maxitems:1)
96
-
*`vsphere_config` - (Optional) vSphere config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config` and `openstack_config` (list maxitems:1)
93
+
*`amazonec2_config` - (Optional) AWS config for the Machine Config V2. Conflicts with `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `openstack_config`, `google_config` and `vsphere_config` (list maxitems:1)
94
+
*`azure_config` - (Optional) Azure config for the Machine Config V2. Conflicts with `amazonec2_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `openstack_config`, `google_config` and `vsphere_config` (list maxitems:1)
95
+
*`digitalocean_config` - (Optional) Digitalocean config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `harvester_config`, `linode_config`, `openstack_config`, `google_config` and `vsphere_config` (list maxitems:1)
96
+
*`harvester_config` - (Optional) Harvester config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `linode_config`, `openstack_config`, `google_config` and `vsphere_config` (list maxitems:1)
97
+
*`linode_config` - (Optional) Linode config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `openstack_config`, `google_config` and `vsphere_config` (list maxitems:1)
98
+
*`openstack_config` - (Optional) Openstack config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `google_config` and `vsphere_config` (list maxitems:1)
99
+
*`vsphere_config` - (Optional) vSphere config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `google_config` and `openstack_config` (list maxitems:1)
100
+
*`google_config` - (Optional) Google config for the Machine Config V2. Conflicts with `amazonec2_config`, `azure_config`, `digitalocean_config`, `harvester_config`, `linode_config`, `openstack_config` and `vsphere_config` (list maxitems:1)
97
101
*`annotations` - (Optional) Annotations for Machine Config V2 object (map)
98
102
*`labels` - (Optional/Computed) Labels for Machine Config V2 object (map)
99
103
@@ -328,6 +332,34 @@ The following attributes are exported:
328
332
*`vcenter` - (Optional/Sensitive) vSphere IP/hostname for vCenter (string)
329
333
*`vcenter_port` - (Optional/Sensitive) vSphere Port for vCenter Default `443` (string)
330
334
335
+
336
+
### `google_config`
337
+
338
+
#### Arguments
339
+
340
+
*`address` - (Optional) GCE Instance External IP (string)
341
+
*`auth_encoded_json` - (Optional/Sensitive) GCE service account auth json file path. Use `rancher2_cloud_credential` from Rancher v2.2.x. (string)
342
+
*`disk_size` - (Required) GCE Instance Disk Size (in GB) (string)
343
+
*`disk_type` - (Required) GCE Instance Disk Type (string)
344
+
*`external_firewall_rule_prefix` - (Optional) A prefix to be added to firewall rules created when exposing ports publicly. Required if exposing ports publicly via the `open_port` field. (string)
345
+
*`internal_firewall_rule_prefix` - (Optional) A prefix to be added to an internal firewall rule created to ensure virtual machines can communicate with one another. Omitting this field will result in an internal firewall rule not being created. (string)
346
+
*`labels` - (Optional) A set of labels to be added to each VM, in the format of 'key1,value1,key2,value2' (string)
*`machine_type` - (Required) GCE instance type (string)
349
+
*`network` - (Required) The network to provision virtual machines within (string)
350
+
*`open_port` - (Optional) A list of ports to be opened publicly (e.g. `123/tcp` or `456/udp`). The `external_firewall_rule_prefix` must also be set for ports to be exposed automatically. (list)
351
+
*`preemptable` - (Optional) Indicates if the virtual machine can be preempted (bool)
352
+
*`project` - (Required) The GCP project to create virtual machines within (string)
353
+
*`scopes` - (Optional) Access scopes to be set on the virtual machine (string)
354
+
*`sub_network` - (Optional) The subnetwork to provision virtual machines within (string)
355
+
*`tags` - (Optional) A set of network tags to be added to each VM, in the format of 'tag1,tag2' (string)
356
+
*`use_existing` - (Optional) Indicates if an existing VM should be used. This is not currently support in Rancher Node Drivers. (bool)
357
+
*`use_internal_ip` - (Optional) Indicates if the virtual machines should use an internal IP (bool)
358
+
*`use_internal_ip_only` - (Optional) Indicates if the virtual machines should use an internal IP only and not be assigned a public IP (bool)
0 commit comments