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
@@ -629,6 +641,7 @@ The following arguments are supported:
629
641
*`gke_config` - (Optional) The Google GKE configuration for `gke` Clusters. Conflicts with `aks_config`, `aks_config_v2`, `eks_config`, `eks_config_v2`, `gke_config_v2`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
630
642
*`gke_config_v2` - (Optional) The Google GKE V2 configuration for `gke` Clusters. Conflicts with `aks_config`, `aks_config_v2`, `eks_config`, `eks_config_v2`, `gke_config`, `oke_config`, `k3s_config` and `rke_config`. For Rancher v2.5.8 and above (list maxitems:1)
631
643
*`oke_config` - (Optional) The Oracle OKE configuration for `oke` Clusters. Conflicts with `aks_config`, `aks_config_v2`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `k3s_config` and `rke_config` (list maxitems:1)
644
+
*`imported_config` - (Optional) The imported configuration for generic imported Clusters. Conflicts with `aks_config`,`aks_config_v2`, `eks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `rke_config`, `rke2_config` and `k3s_config` (list maxitems:1)
632
645
*`description` - (Optional) The description for Cluster (string)
633
646
*`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)
634
647
*`cluster_template_answers` - (Optional/Computed) Cluster template answers. For Rancher v2.3.x and above (list maxitems:1)
@@ -1959,6 +1972,12 @@ The following arguments are supported:
1959
1972
*`type` - (Optional) Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string)
1960
1973
*`variable` - (Optional) Variable name (string)
1961
1974
1975
+
### `imported_config`
1976
+
1977
+
#### Arguments
1978
+
1979
+
*`private_registry_url` - (Optional) The URL for a cluster-level private registry (string)
1980
+
1962
1981
### `cluster_registration_token`
1963
1982
1964
1983
#### Attributes
@@ -1976,7 +1995,6 @@ The following arguments are supported:
1976
1995
*`annotations` - (Computed) Annotations for cluster registration token object (map)
1977
1996
*`labels` - (Computed) Labels for cluster registration token object (map)
0 commit comments