Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat(examples): add labels and antiAffinity to k8s example
  • Loading branch information
coadler committed Jan 17, 2023
commit 3e277484ffd196e3012d659d920ca0f34a9aeeeb
3 changes: 3 additions & 0 deletions examples/templates/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ resource "kubernetes_pod" "main" {
}
}


affinity {
pod_anti_affinity {
// This affinity attempts to spread out all workspace pods evenly across
// nodes.
preferred_during_scheduling_ignored_during_execution {
weight = 1
pod_affinity_term {
Expand Down