From 6908960530e76cd547a3da255abb656bf91bf7e6 Mon Sep 17 00:00:00 2001 From: Milton Date: Mon, 9 Oct 2023 20:40:50 -0300 Subject: [PATCH] fix: Update terraform configuration for kind_cluster resource and add kind provider --- config/main.tf | 7 ++++--- config/providers.tf | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/main.tf b/config/main.tf index 996c751..fbd994d 100644 --- a/config/main.tf +++ b/config/main.tf @@ -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 { @@ -20,3 +19,5 @@ resource "kind_cluster" "default" { } } } + + diff --git a/config/providers.tf b/config/providers.tf index 5874d60..0a63b9e 100644 --- a/config/providers.tf +++ b/config/providers.tf @@ -5,4 +5,6 @@ terraform { version = "0.2.1" } } -} \ No newline at end of file +} + +provider "kind" {}