Skip to content

Commit

Permalink
fix: Update terraform configuration for kind_cluster resource and add…
Browse files Browse the repository at this point in the history
… kind provider
  • Loading branch information
miltlima committed Oct 9, 2023
1 parent 99e503d commit 6908960
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions config/main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
resource "kind_cluster" "default" {
name = "kubelearn-cluster"
name = "kubelearn-cluster"
wait_for_ready = true
node_image = "kindest/node:v1.27.1"
node_image = "kindest/node:v1.27.1"
kind_config {
kind = "Cluster"
api_version = "kind.x-k8s.io/v1alpha4"

node {
role = "control-plane"

}

node {
Expand All @@ -20,3 +19,5 @@ resource "kind_cluster" "default" {
}
}
}


4 changes: 3 additions & 1 deletion config/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ terraform {
version = "0.2.1"
}
}
}
}

provider "kind" {}

0 comments on commit 6908960

Please sign in to comment.