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
### Creating Rancher v2 imported cluster with custom configuration. For Rancher v2.11.x and above.
24
+
25
+
```hcl
26
+
# Create a new rancher2 imported Cluster with custom configuration
27
+
resource "rancher2_cluster" "foo-imported" {
28
+
name = "foo-imported"
29
+
imported_config {
30
+
private_registry_url = "test.io"
31
+
}
32
+
}
33
+
```
34
+
35
+
### Creating Rancher v2 RKE cluster
24
36
25
37
```hcl
26
38
# Create auditlog policy yaml file
@@ -626,6 +638,7 @@ The following arguments are supported:
626
638
*`eks_config_v2` - (Optional/Computed) The Amazon EKS V2 configuration to create or import `eks` Clusters. Conflicts with `gke_config_v2`, `k3s_config`, `oke_config` and `rke_config`. For Rancher v2.5.x and above (list maxitems:1)
627
639
*`gke_config_v2` - (Optional) The Google GKE V2 configuration for `gke` Clusters. Conflicts with `aks_config_v2`, `eks_config_v2`, `k3s_config`, `oke_config` and `rke_config`. For Rancher v2.5.8 and above (list maxitems:1)
628
640
*`oke_config` - (Optional) The Oracle OKE configuration for `oke` Clusters. Conflicts with `aks_config_v2`, `eks_config_v2`, `gke_config_v2`, `k3s_config` and `rke_config` (list maxitems:1)
641
+
*`imported_config` - (Optional) The imported configuration for generic imported Clusters. Conflicts with `aks_config_v2`, `eks_config_v2`, `gke_config_v2`, `rke_config`, `rke2_config` and `k3s_config` (list maxitems:1)
629
642
*`description` - (Optional) The description for Cluster (string)
630
643
*`cluster_auth_endpoint` - (Optional/Computed) Enabling the [local cluster authorized endpoint](https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/rke-clusters/options/#local-cluster-auth-endpoint) allows direct communication with the cluster, bypassing the Rancher API proxy. (list maxitems:1)
631
644
*`cluster_template_answers` - (Optional/Computed) Cluster template answers. For Rancher v2.3.x and above (list maxitems:1)
@@ -1824,6 +1837,12 @@ The following arguments are supported:
1824
1837
*`type` - (Optional) Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string)
1825
1838
*`variable` - (Optional) Variable name (string)
1826
1839
1840
+
### `imported_config`
1841
+
1842
+
#### Arguments
1843
+
1844
+
*`private_registry_url` - (Optional) The URL for a cluster-level private registry (string)
1845
+
1827
1846
### `cluster_registration_token`
1828
1847
1829
1848
#### Attributes
@@ -1841,7 +1860,6 @@ The following arguments are supported:
1841
1860
*`annotations` - (Computed) Annotations for cluster registration token object (map)
1842
1861
*`labels` - (Computed) Labels for cluster registration token object (map)
0 commit comments