Skip to content

Commit

Permalink
Use eviction policy Delete for Low priority VMSS workers
Browse files Browse the repository at this point in the history
* Fix known issue that Azure defaults to Deallocate eviction
policy, which required manually restarting deallocated workers
* Require terraform-provider-azurerm v1.19+ to support setting
the eviction_policy
  • Loading branch information
dghubble committed Nov 19, 2018
1 parent ea3fc6d commit fe24194
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Notable changes between versions.
* Enable CoreDNS `loop` and `loadbalance` plugins ([#340](https://github.com/poseidon/typhoon/pull/340))
* Use kubernetes-incubator/bootkube v0.14.0

#### Azure

* Use eviction policy `Delete` for `Low` priority virtual machine scale set workers ([#343](https://github.com/poseidon/typhoon/pull/343))
* Fix known issue that Azure defaults to `Deallocate` eviction policy, which required manually restarting deallocated instances. `Delete` policy aligns Azure with AWS and GCP behavior.
* Require `terraform-provider-azurerm` v1.19+ (action required)

#### Addons

* Update Prometheus from v2.4.3 to v2.5.0
Expand Down
2 changes: 1 addition & 1 deletion azure/container-linux/kubernetes/require.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
}

provider "azurerm" {
version = "~> 1.17"
version = "~> 1.19"
}

provider "local" {
Expand Down
3 changes: 2 additions & 1 deletion azure/container-linux/kubernetes/workers/workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ resource "azurerm_virtual_machine_scale_set" "workers" {
}

# lifecycle
priority = "${var.priority}"
upgrade_policy_mode = "Manual"
priority = "${var.priority}"
eviction_policy = "Delete"
}

# Scale up or down to maintain desired number, tolerating deallocations.
Expand Down

0 comments on commit fe24194

Please sign in to comment.