-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
30 lines (24 loc) · 1.01 KB
/
main.tf
File metadata and controls
30 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
data "azurerm_kubernetes_cluster" "aks" {
name = var.aks_cluster_name
resource_group_name = var.aks_resource_group
}
module "castai_omni_cluster" {
source = "../.."
k8s_provider = "aks"
api_url = var.castai_api_url
api_token = var.castai_api_token
organization_id = var.organization_id
cluster_id = var.cluster_id
cluster_name = var.aks_cluster_name
cluster_region = data.azurerm_kubernetes_cluster.aks.location
api_server_address = "https://${data.azurerm_kubernetes_cluster.aks.fqdn}"
pod_cidr = data.azurerm_kubernetes_cluster.aks.network_profile[0].pod_cidr
service_cidr = data.azurerm_kubernetes_cluster.aks.network_profile[0].service_cidr
skip_helm = var.skip_helm
}
module "castai_omni_edge_location_gcp" {
source = "github.com/castai/terraform-castai-omni-edge-location-gcp"
cluster_id = module.castai_omni_cluster.cluster_id
organization_id = module.castai_omni_cluster.organization_id
region = "europe-west4"
}