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
***New Argument:**`rancher2_cluster.rke2_config` - (Optional/Computed) The RKE2 configuration for `rke2` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
12
12
***New Argument:**`rancher2_cluster_sync.wait_alerting` - (Optional) Wait until alerting is up and running. Default: `false` (bool)
13
+
***New Argument:**`rancher2_cluster.gke_config_v2` - (Optional) The Google GKE V2 configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `oke_config`, `k3s_config` and `rke_config`. For Rancher v2.5.8 or above (list maxitems:1)
14
+
***New Argument:**`rancher2_cloud_credential.google_credential_config` - (Optional) Google config for the Cloud Credential (list maxitems:1)
13
15
14
16
ENHANCEMENTS:
15
17
16
-
* Improved `rancher2_cluster_sync` with new cluster state check method and new option to wait until alerting is enabled
17
18
* Updated `rancher2_catalog_v2` schema resource, defining conflict between `git_repo` and `url` arguments
19
+
* Improved `rancher2_cluster_sync` with new cluster state check method and new option to wait until alerting is enabled
20
+
* Updated go mod to support Rancher `v2.5.8`
21
+
* Updated acceptance tests to use Rancher `v2.5.8`
Copy file name to clipboardExpand all lines: docs/data-sources/cluster.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,15 @@ The following attributes are exported:
31
31
*`kube_config` - (Computed) Kube Config generated for the cluster (string)
32
32
*`ca_cert` - (Computed) K8s cluster ca cert (string)
33
33
*`system_project_id` - (Computed) System project ID for the cluster (string)
34
-
*`rke_config` - (Computed) The RKE configuration for `rke` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `k3s_config` and `rke2_config` (list maxitems:1)
34
+
*`rke_config` - (Computed) The RKE configuration for `rke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config` and `k3s_config` (list maxitems:1)
35
35
*`rke2_config` - (Computed) The RKE2 configuration for `rke2` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
36
-
*`k3s_config` - (Computed) The K3S configuration for `k3s` imported Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `rke_config` and `rke2_config` (list maxitems:1)
37
-
*`aks_config` - (Computed) The Azure AKS configuration for `aks` Clusters. Conflicts with `eks_config`, `eks_config_v2`, `gke_config`, `oke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
38
-
*`eks_config` - (Computed) The Amazon EKS configuration for `eks` Clusters. Conflicts with `aks_config`, `eks_config_v2`, `gke_config`, `oke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
39
-
*`eks_config_v2` - (Computed) The Amazon EKS configuration to create or import `eks` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config``k3s_config`, `rke_config` and `rke2_config`. For Rancher v2.5.x or above (list maxitems:1)
40
-
*`gke_config` - (Computed) The Google GKE configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_import`, `oke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
41
-
*`oke_config` - (Computed) The Oracle OKE configuration for `oke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_import`, `gke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
36
+
*`k3s_config` - (Computed) The K3S configuration for `k3s` imported Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config` and `rke_config` (list maxitems:1)
37
+
*`aks_config` - (Computed) The Azure aks configuration for `aks` Clusters. Conflicts with `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
38
+
*`eks_config` - (Computed) The Amazon eks configuration for `eks` Conflicts with `aks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
39
+
*`eks_config_v2` - (Computed) The Amazon EKS V2 configuration to create or import `eks` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `gke_config_v2`, `oke_config`, `k3s_config` and `rke_config`. For Rancher v2.5.x or above (list maxitems:1)
40
+
*`gke_config` - (Computed) The Google gke configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config_v2`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1) (list maxitems:1)
41
+
*`gke_config_v2` - (Computed) The Google GKE V2 configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `oke_config`, `k3s_config` and `rke_config`. For Rancher v2.5.8 or above (list maxitems:1)
42
+
*`oke_config` - (Computed) The Oracle OKE configuration for `oke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `k3s_config` and `rke_config` (list maxitems:1)
42
43
*`description` - (Computed) The description for Cluster (string)
43
44
*`cluster_auth_endpoint` - (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)
region = <REGION> # Zone argument could also be used instead of region
489
+
project_id = <PROJECT_ID>
490
+
kubernetes_version = <K8S_VERSION>
491
+
network = <NETWORK>
492
+
subnetwork = <SUBNET>
493
+
node_pools {
494
+
initial_node_count = 1
495
+
max_pods_constraint = 110
496
+
name = <NODE_POOL_NAME>
497
+
version = <VERSION>
498
+
}
499
+
}
500
+
}
501
+
```
502
+
445
503
## Argument Reference
446
504
447
505
The following arguments are supported:
448
506
449
507
*`name` - (Required) The name of the Cluster (string)
450
-
*`rke_config` - (Optional/Computed) The RKE configuration for `rke` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `k3s_config` and `rke2_config` (list maxitems:1)
508
+
*`rke_config` - (Optional/Computed) The RKE configuration for `rke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config` and `k3s_config` (list maxitems:1)
451
509
*`rke2_config` - (Optional/Computed) The RKE2 configuration for `rke2` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
452
-
*`k3s_config` - (Optional/Computed) The K3S configuration for `k3s` imported Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config`, `rke_config` and `rke2_config` (list maxitems:1)
453
-
*`aks_config` - (Optional) The Azure AKS configuration for `aks` Clusters. Conflicts with `eks_config`, `eks_config_v2`, `gke_config`, `oke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
454
-
*`eks_config` - (Optional) The Amazon EKS configuration for `eks` Clusters. Conflicts with `aks_config`, `eks_config_v2`, `gke_config`, `oke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
455
-
*`eks_config_v2` - (Optional) The Amazon EKS configuration to create or import `eks` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `oke_config``k3s_config`, `rke_config` and `rke2_config`. For Rancher v2.5.x or above (list maxitems:1)
456
-
*`gke_config` - (Optional) The Google GKE configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_import`, `oke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
457
-
*`oke_config` - (Optional) The Oracle OKE configuration for `oke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_import`, `gke_config``k3s_config`, `rke_config` and `rke2_config` (list maxitems:1)
510
+
*`k3s_config` - (Optional/Computed) The K3S configuration for `k3s` imported Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config` and `rke_config` (list maxitems:1)
511
+
*`aks_config` - (Optional) The Azure AKS configuration for `aks` Clusters. Conflicts with `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config``k3s_config` and `rke_config` (list maxitems:1)
512
+
*`eks_config` - (Optional) The Amazon EKS configuration for `eks` Clusters. Conflicts with `aks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `oke_config``k3s_config` and `rke_config` (list maxitems:1)
513
+
*`eks_config_v2` - (Optional) The Amazon EKS V2 configuration to create or import `eks` Clusters. Conflicts with `aks_config`, `eks_config`, `gke_config`, `gke_config_v2`, `oke_config``k3s_config` and `rke_config`. For Rancher v2.5.x or above (list maxitems:1)
514
+
*`gke_config` - (Optional) The Google GKE configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config_v2`, `oke_config`, `k3s_config` and `rke_config` (list maxitems:1)
515
+
*`gke_config_v2` - (Optional) The Google GKE V2 configuration for `gke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `oke_config`, `k3s_config` and `rke_config`. For Rancher v2.5.8 or above (list maxitems:1)
516
+
*`oke_config` - (Optional) The Oracle OKE configuration for `oke` Clusters. Conflicts with `aks_config`, `eks_config`, `eks_config_v2`, `gke_config`, `gke_config_v2`, `k3s_config` and `rke_config` (list maxitems:1)
458
517
*`description` - (Optional) The description for Cluster (string)
459
518
*`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)
460
519
*`cluster_monitoring_input` - (Optional) Cluster monitoring config. Any parameter defined in [rancher-monitoring charts](https://github.com/rancher/system-charts/tree/dev/charts/rancher-monitoring) could be configured (list maxitems:1)
@@ -1275,6 +1334,126 @@ The following arguments are supported:
1275
1334
*`taints` - (Required) List of Kubernetes taints to be applied to each node (list)
1276
1335
*`zone` - (Optional) GKE cluster zone. Conflicts with `region` (string)
1277
1336
1337
+
### `gke_config_v2`
1338
+
1339
+
#### Arguments
1340
+
1341
+
*`name` - (Required/ForceNew) The GKE ip v4 cidr block (string)
1342
+
*`google_credential_secret` - (Required/Sensitive) Google credential secret (string)
1343
+
*`project_id` - (Required/ForceNew) The GKE cluster project id (string)
1344
+
*`cluster_ipv4_cidr_block` - (Optional/Computed/ForceNew) The GKE ip v4 cidr block (string)
1345
+
*`cluster_addons` - (Optional/Computed) The GKE cluster addons (List maxitems:1)
1346
+
*`description` - (Optional/Computed/ForceNew) The GKE cluster addons (string)
*`display_name` - (Optional) The GKE master authorized network config cidr block dispaly name (string)
1399
+
1400
+
#### `node_pools`
1401
+
1402
+
##### Arguments
1403
+
1404
+
*`name` - (Required) The GKE node pool config name (string)
1405
+
*`initial_node_count` - (Required) The GKE node pool config initial node count (int)
1406
+
*`version` - (Required) The GKE node pool config version. Required for create new cluster (string)
1407
+
*`autoscaling` - (Optional/computed) The GKE node pool config autoscaling (List maxitems:1)
1408
+
*`config` - (Optional/Computed/ForceNew) The GKE node pool node config (List maxitems:1)
1409
+
*`management` - (Optional/Computed) The GKE node pool config management (List maxitems:1)
1410
+
*`max_pods_constraint` - (Optional/Computed) The GKE node pool config max pods constraint. Required for create new cluster if `ip_allocation_policy.use_ip_aliases = true` (int)
0 commit comments