Updated kubernetes cluster terraform

This commit is contained in:
Marcus Noble 2020-05-02 10:58:55 +01:00
parent 489e3779d3
commit c65725b41f

View File

@ -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
}