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 }