FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Add node autoscaling

Merged Robin Goodall requested to merge 10-add-node-autoscaling into master
3 unresolved threads

autoscaling variable can be set when using module specifying both min and max node counts:

module "cluster" {
  source = "git::ssh://git@gitlab.developers.cam.ac.uk/uis/devops/infra/terraform/gke-cluster.git"

  project  = local.project
  location = "europe-west2"

  machine_type = "n1-standard-1"

  autoscaling = {
    min_node_count = 1
    max_node_count = 3
  }
}

Behaves as normal without having autoscaling variable set.

Also added functionality to be able to specify basic node_count (default 1) if not using autoscaling.

Closes #10 (closed)

Edited by Dr Rich Wareham

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
124 125 "https://www.googleapis.com/auth/monitoring",
125 126 ]
126 127 }
128
129 dynamic "autoscaling" {
  • Dr Rich Wareham approved this merge request

    approved this merge request

  • Dr Rich Wareham unapproved this merge request

    unapproved this merge request

  • Robin Goodall added 1 commit

    added 1 commit

    • 118ff3ff - Apply suggestion to variables.tf

    Compare with previous version

  • Dr Rich Wareham changed the description

    changed the description

  • Dr Rich Wareham approved this merge request

    approved this merge request

  • This correctly sets the appropriate values on the cluster. Making use of them is an exercise for the deployment :).

  • Dr Rich Wareham mentioned in commit f8c32143

    mentioned in commit f8c32143

  • Please register or sign in to reply
    Loading