Updated kubernetes cluster terraform
This commit is contained in:
parent
489e3779d3
commit
c65725b41f
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user