Skip to content

Commit

Permalink
upcloud: update terraform provider strict anti-affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
robinAwallace committed Sep 29, 2023
1 parent 7919a47 commit 889e9ae
Show file tree
Hide file tree
Showing 9 changed files with 179 additions and 179 deletions.
2 changes: 1 addition & 1 deletion contrib/terraform/upcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ terraform destroy --var-file cluster-settings.tfvars \
* `backend_servers`: List of servers that traffic to the port should be forwarded to.
* `server_groups`: Group servers together
* `servers`: The servers that should be included in the group.
* `anti_affinity`: If anti-affinity should be enabled, try to spread the VMs out on separate nodes.
* `anti_affinity_policy`: Defines if a server group is an anti-affinity group. Setting this to "strict" or yes" will result in all servers in the group being placed on separate compute hosts. The value can be "strict", "yes" or "no". "strict" refers to strict policy doesn't allow servers in the same server group to be on the same host. "yes" refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed.
8 changes: 4 additions & 4 deletions contrib/terraform/upcloud/cluster-settings.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ssh_public_keys = [

# check list of available plan https://developers.upcloud.com/1.3/7-plans/
machines = {
"master-0" : {
"control-plane-0" : {
"node_type" : "master",
# plan to use instead of custom cpu/mem
"plan" : null,
Expand Down Expand Up @@ -133,16 +133,16 @@ loadbalancers = {
server_groups = {
# "control-plane" = {
# servers = [
# "master-0"
# "control-plane-0"
# ]
# anti_affinity = true
# anti_affinity_policy = "strict"
# },
# "workers" = {
# servers = [
# "worker-0",
# "worker-1",
# "worker-2"
# ]
# anti_affinity = true
# anti_affinity_policy = "yes"
# }
}
Loading

0 comments on commit 889e9ae

Please sign in to comment.