Skip to content

Commit

Permalink
Pin postgres and redis to the application node pool
Browse files Browse the repository at this point in the history
Use the node_selector to pin the pods to the application node pool. The
default node pool is reserved for the system.
  • Loading branch information
saliceti committed Jan 10, 2025
1 parent ae7f171 commit 5e2a1a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aks/postgres/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ resource "kubernetes_deployment" "main" {
}
spec {
node_selector = {
"kubernetes.io/os" : "linux"
"teacherservices.cloud/node_pool" = "applications"
"kubernetes.io/os" = "linux"
}
container {
name = local.kubernetes_name
Expand Down
3 changes: 2 additions & 1 deletion aks/redis/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ resource "kubernetes_deployment" "main" {
}
spec {
node_selector = {
"kubernetes.io/os" : "linux"
"teacherservices.cloud/node_pool" = "applications"
"kubernetes.io/os" = "linux"
}
container {
name = local.kubernetes_name
Expand Down

0 comments on commit 5e2a1a3

Please sign in to comment.