-
Notifications
You must be signed in to change notification settings - Fork 1
/
versions.tf
52 lines (46 loc) · 999 Bytes
/
versions.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
terraform {
required_providers {
kind = {
source = "tehcyx/kind"
version = "~> 0.0.14"
}
kubectl = {
source = "gavinbunney/kubectl"
version = "~> 1.14"
}
docker = {
source = "kreuzwerker/docker"
version = "~> 2.22"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.14"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.7"
}
}
}
resource "time_sleep" "wait_cluster" {
create_duration = "10s"
depends_on = [kind_cluster.this]
}
data "local_file" "kube_config" {
filename = "${var.cluster_name}-config"
depends_on = [time_sleep.wait_cluster]
}
provider "kubectl" {
config_path = data.local_file.kube_config.filename
}
provider "kubernetes" {
config_path = data.local_file.kube_config.filename
}
provider "helm" {
kubernetes {
config_path = data.local_file.kube_config.filename
}
}
provider "docker" {
host = "unix:///var/run/docker.sock"
}