From c65725b41fb4a814cd247e8ded9039b0c5b565d8 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 2 May 2020 10:58:55 +0100 Subject: [PATCH] Updated kubernetes cluster terraform --- .../{kubernetes.tf => kubernetes-cluster.tf} | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) rename terraform/{kubernetes.tf => kubernetes-cluster.tf} (70%) diff --git a/terraform/kubernetes.tf b/terraform/kubernetes-cluster.tf similarity index 70% rename from terraform/kubernetes.tf rename to terraform/kubernetes-cluster.tf index 323f9db..8cd82c0 100644 --- a/terraform/kubernetes.tf +++ b/terraform/kubernetes-cluster.tf @@ -6,15 +6,6 @@ resource "scaleway_k8s_cluster_beta" "k8s-cluster" { enable_dashboard = false ingress = "traefik" - default_pool { - node_type = "DEV1-M" - size = 1 - autoscaling = true - autohealing = true - min_size = 1 - max_size = 2 - } - feature_gates = [ "EphemeralContainers", "HPAScaleToZero", @@ -23,6 +14,17 @@ resource "scaleway_k8s_cluster_beta" "k8s-cluster" { } +resource "scaleway_k8s_pool_beta" "k8s-cluster-pool-1" { + cluster_id = scaleway_k8s_cluster_beta.k8s-cluster.id + name = "node pool 1" + node_type = "DEV1-M" + size = 1 + min_size = 1 + max_size = 2 + autoscaling = true + autohealing = true +} + output "api_server" { value = scaleway_k8s_cluster_beta.k8s-cluster.apiserver_url }