Use eviction policy Delete for Low priority VMSS workers

* Fix issue where Azure defaults to Deallocate eviction policy,
which required manually restarting deallocated workers
* Require terraform-provider-azurerm v1.19+ to support setting
the eviction_policy
This commit is contained in:
Dalton Hubble 2018-11-18 16:57:54 -08:00
parent ea3fc6d2a7
commit c6586b69fd
3 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,12 @@ Notable changes between versions.
* Enable CoreDNS `loop` and `loadbalance` plugins ([#340](https://github.com/poseidon/typhoon/pull/340)) * Enable CoreDNS `loop` and `loadbalance` plugins ([#340](https://github.com/poseidon/typhoon/pull/340))
* Use kubernetes-incubator/bootkube v0.14.0 * 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 issue where 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 #### Addons
* Update Prometheus from v2.4.3 to v2.5.0 * Update Prometheus from v2.4.3 to v2.5.0

View File

@ -5,7 +5,7 @@ terraform {
} }
provider "azurerm" { provider "azurerm" {
version = "~> 1.17" version = "~> 1.19"
} }
provider "local" { provider "local" {

View File

@ -67,8 +67,9 @@ resource "azurerm_virtual_machine_scale_set" "workers" {
} }
# lifecycle # lifecycle
priority = "${var.priority}"
upgrade_policy_mode = "Manual" upgrade_policy_mode = "Manual"
priority = "${var.priority}"
eviction_policy = "Delete"
} }
# Scale up or down to maintain desired number, tolerating deallocations. # Scale up or down to maintain desired number, tolerating deallocations.