File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
core/arc/scale_set/template_files Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 5656 runs-on :
5757 - self-hosted
5858 - x64
59- - type : standard
59+ - type:standard
6060` ` `
6161
6262For Kubernetes pods, use:
Original file line number Diff line number Diff line change 3636 runs-on :
3737 - self-hosted
3838 - x64
39- - type : large
40- - env : ops-prod
39+ - type:large
40+ - env:ops-prod
4141
4242 steps :
4343 - name : Checkout Repository
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ containerMode:
2020
2121# with containerMode.type=kubernetes, we will populate the template.spec with following pod spec
2222template:
23+ metadata:
24+ annotations:
25+ karpenter. sh / do- not- evict: " true"
2326 spec:
2427 securityContext:
2528 fsGroup: 123
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ locals {
9898 disk_throughput = var.cluster_volume.throughput
9999 })
100100
101- node_pool_manifest = templatefile (" ${ path . module } /templates/node_pool.yaml.tpl" , {})
101+ node_pool_manifest = templatefile (" ${ path . module } /templates/node_pool.yaml.tpl" , {
102+ instance_type = var.cluster_size.instance_type
103+ })
102104}
103105
104106resource "null_resource" "apply_ec2_node_class" {
Original file line number Diff line number Diff line change 66 template:
77 spec:
88 requirements:
9- - key: karpenter .k8s.aws /instance-family
9+ - key: node.kubernetes.io /instance-type
1010 operator: In
1111 values:
12- - m6i
13- - m5
14- - c6i
15- - c5
16- - r6i
17- - r5
12+ - ${ instance_type}
1813 - key: kubernetes.io/arch
1914 operator: In
2015 values: ["amd64"]
You can’t perform that action at this time.
0 commit comments