-
Notifications
You must be signed in to change notification settings - Fork 21
/
terraform.tf
57 lines (48 loc) · 1.23 KB
/
terraform.tf
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
46
47
48
49
50
51
52
53
54
55
56
57
terraform {
required_version = ">=1.8.0"
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = ">= 1.49.1"
}
talos = {
source = "siderolabs/talos"
version = ">= 0.6.1"
}
http = {
source = "hashicorp/http"
version = ">= 3.4.5"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.16.1"
}
kubectl = {
source = "alekc/kubectl"
version = ">= 2.1.3"
}
tls = {
source = "hashicorp/tls"
version = ">= 4.0.6"
}
}
}
provider "hcloud" {
token = var.hcloud_token
}
provider "helm" {
kubernetes {
host = local.kubeconfig_data.host
client_certificate = local.kubeconfig_data.client_certificate
client_key = local.kubeconfig_data.client_key
cluster_ca_certificate = local.kubeconfig_data.cluster_ca_certificate
}
}
provider "kubectl" {
host = local.kubeconfig_data.host
client_certificate = local.kubeconfig_data.client_certificate
client_key = local.kubeconfig_data.client_key
cluster_ca_certificate = local.kubeconfig_data.cluster_ca_certificate
load_config_file = false
apply_retry_count = 3
}