forked from hcloud-talos/terraform-hcloud-talos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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.48.0"
}
talos = {
source = "siderolabs/talos"
version = ">=0.5.0"
}
http = {
source = "hashicorp/http"
version = ">= 3.4.4"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.15.0"
}
kubectl = {
source = "gavinbunney/kubectl"
version = ">=1.14.0"
}
tls = {
source = "hashicorp/tls"
version = ">=4.0.5"
}
}
}
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
}