-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproviders.tf
More file actions
45 lines (40 loc) · 1.13 KB
/
providers.tf
File metadata and controls
45 lines (40 loc) · 1.13 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
terraform {
required_version = ">= 1.10"
required_providers {
castai = {
source = "castai/castai"
version = ">= 8.4.0"
}
google = {
source = "hashicorp/google"
version = ">= 4.0"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.35.0"
}
}
}
provider "google" {
project = var.gke_project_id
}
provider "helm" {
kubernetes = {
host = "https://${data.google_container_cluster.gke.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(data.google_container_cluster.gke.master_auth.0.cluster_ca_certificate)
}
}
provider "kubernetes" {
host = "https://${data.google_container_cluster.gke.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(data.google_container_cluster.gke.master_auth.0.cluster_ca_certificate)
}
provider "castai" {
api_token = var.castai_api_token
api_url = var.castai_api_url
}