File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
terraform-unity/modules/terraform-unity-sps-ogc-processes-api Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ affinity:
56
56
values : ["on-demand"]
57
57
- key : " karpenter.k8s.aws/instance-family"
58
58
operator : " In"
59
- values : ["c6i", "c5 "]
59
+ values : ["r5 "]
60
60
- key : " karpenter.k8s.aws/instance-cpu"
61
61
operator : " In"
62
- values : ["2", "4 "]
62
+ values : ["8 "]
63
63
64
64
topologySpreadConstraints :
65
65
- maxSkew : 1
Original file line number Diff line number Diff line change @@ -17,6 +17,34 @@ resource "kubernetes_deployment" "redis" {
17
17
}
18
18
}
19
19
spec {
20
+ affinity {
21
+ node_affinity {
22
+ required_during_scheduling_ignored_during_execution {
23
+ node_selector_term {
24
+ match_expressions {
25
+ key = " karpenter.sh/nodepool"
26
+ operator = " In"
27
+ values = compact ([for pool in var . karpenter_node_pools : pool if pool == " airflow-core-components" ])
28
+ }
29
+ match_expressions {
30
+ key = " karpenter.sh/capacity-type"
31
+ operator = " In"
32
+ values = [" on-demand" ]
33
+ }
34
+ match_expressions {
35
+ key = " karpenter.k8s.aws/instance-family"
36
+ operator = " In"
37
+ values = [" r5" ]
38
+ }
39
+ match_expressions {
40
+ key = " karpenter.k8s.aws/instance-cpu"
41
+ operator = " In"
42
+ values = [" 8" ]
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
20
48
container {
21
49
name = " redis"
22
50
image = " ${ var . docker_images . redis . name } :${ var . docker_images . redis . tag } "
You can’t perform that action at this time.
0 commit comments