Skip to content

Commit

Permalink
docs: (IAC-977) Update enable_cluster_autoscaling documentation (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpat authored Jul 21, 2023
1 parent 78da726 commit 23e3c34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/CONFIG-VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The application of a Kubernetes version in GCP has some limitations when assigni
| :--- | ---: | ---: | ---: | ---: |
| kubernetes_version | The GKE cluster K8S version | string | "latest" | Valid values depend on the kubernetes_channel and version required, see https://cloud.google.com/kubernetes-engine/docs/release-notes |
| kubernetes_channel | The GKE cluster channel for auto-updates | string | "UNSPECIFIED" | Possible values: "STABLE", "REGULAR", "RAPID"; Set "UNSPECIFIED" for no auto-updates |
| enable_cluster_autoscaling | Enable cluster autoscaling | bool | false | |
| enable_cluster_autoscaling | Per-cluster configuration of [Node Auto-Provisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) with Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs of the cluster's workload | bool | false | This is different from node autoscaling which is controlled by `max_node` & `min_node` in your [node pool definitions](#Nodepools)|
| cluster_autoscaling_max_cpu_cores | MAX number of cores in the cluster | number | 500 | |
| cluster_autoscaling_max_memory_gb | MAX number of gb of memory in the cluster | number | 10000 | |
| create_static_kubeconfig | Allows the user to create a provider / service account based kube config file | bool | true | A value of `false` will default to using the cloud providers mechanism for generating the kubeconfig file. A value of `true` will create a static kubeconfig which utilizes a `Service Account` and `Cluster Role Binding` to provide credentials. |
Expand Down
14 changes: 7 additions & 7 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ variable "default_nodepool_locations" {

variable "node_pools" {
description = "Node pool definitions"
type = map(object({
type = map(object({
vm_type = string
os_disk_size = number
min_nodes = string
Expand All @@ -260,7 +260,7 @@ variable "node_pools" {
"min_nodes" = 1
"max_nodes" = 5
"node_taints" = ["workload.sas.com/class=cas:NoSchedule"]
"node_labels" = {
"node_labels" = {
"workload.sas.com/class" = "cas"
}
"local_ssd_count" = 0
Expand All @@ -273,7 +273,7 @@ variable "node_pools" {
"min_nodes" = 1
"max_nodes" = 5
"node_taints" = ["workload.sas.com/class=compute:NoSchedule"]
"node_labels" = {
"node_labels" = {
"workload.sas.com/class" = "compute"
"launcher.sas.com/prepullImage" = "sas-programming-environment"
}
Expand All @@ -287,7 +287,7 @@ variable "node_pools" {
"min_nodes" = 1
"max_nodes" = 5
"node_taints" = ["workload.sas.com/class=stateless:NoSchedule"]
"node_labels" = {
"node_labels" = {
"workload.sas.com/class" = "stateless"
}
"local_ssd_count" = 0
Expand All @@ -300,7 +300,7 @@ variable "node_pools" {
"min_nodes" = 1
"max_nodes" = 3
"node_taints" = ["workload.sas.com/class=stateful:NoSchedule"]
"node_labels" = {
"node_labels" = {
"workload.sas.com/class" = "stateful"
}
"local_ssd_count" = 0
Expand All @@ -327,7 +327,7 @@ variable "nodepools_locations" {
}

variable "enable_cluster_autoscaling" {
description = "Setting this value will enable cluster_autoscaling"
description = "Setting this value will enable cluster_autoscaling a per-cluster configuration of Node Auto-Provisioning with Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs of the cluster's workload."
type = bool
default = false
}
Expand All @@ -350,7 +350,7 @@ variable "cluster_autoscaling_max_memory_gb" {
variable "postgres_server_defaults" {
description = "default values for a postgres server"
type = any
default = {
default = {
machine_type = "db-custom-8-30720"
storage_gb = 10
backups_enabled = true
Expand Down

0 comments on commit 23e3c34

Please sign in to comment.