Skip to content
Snippets Groups Projects
Verified Commit b50d585f authored by Vincent Sellier's avatar Vincent Sellier
Browse files

Configure rancher to drain a nodes before launching an upgrade

If not, the pods are abruptly killed.

Related to infra/sysadm-environment#4688
parent a905134d
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,13 @@ resource "rancher2_cluster" "cluster-admin" {
ingress {
provider = "none"
}
upgrade_strategy {
drain = true
drain_input {
delete_local_data = true
timeout = 300
}
}
}
}
......
......@@ -14,6 +14,13 @@ resource "rancher2_cluster" "archive-production" {
ingress {
provider = "none"
}
upgrade_strategy {
drain = true
drain_input {
delete_local_data = true
timeout = 300
}
}
}
}
......
......@@ -18,6 +18,13 @@ resource "rancher2_cluster" "archive-staging" {
}
}
}
upgrade_strategy {
drain = true
drain_input {
delete_local_data = true
timeout = 300
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment