forked from justindavies/NAPCostComparison
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsinglenode.yaml
More file actions
53 lines (53 loc) · 1.74 KB
/
Copy pathsinglenode.yaml
File metadata and controls
53 lines (53 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This example NodePool will provision general purpose instances
---
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
name: default
annotations:
kubernetes.io/description: "Basic NodePool for generic workloads"
spec:
disruption:
consolidationPolicy: WhenEmptyOrUnderutilized
consolidateAfter: 1m
limits:
cpu: "10"
template:
metadata:
labels:
# required for Karpenter to predict overhead from cilium DaemonSet
kubernetes.azure.com/ebpf-dataplane: cilium
eks-immersion-team: my-team
spec:
expireAfter: Never
startupTaints:
# https://karpenter.sh/docs/concepts/nodepools/#cilium-startup-taint
- key: node.cilium.io/agent-not-ready
effect: NoExecute
value: "true"
requirements:
- key: karpenter.azure.com/sku-family
operator: In
values: [D]
- key: kubernetes.io/arch
operator: In
values: ["amd64"]
- key: kubernetes.io/os
operator: In
values: ["linux"]
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
nodeClassRef:
group: karpenter.azure.com
kind: AKSNodeClass
name: default
---
apiVersion: karpenter.azure.com/v1alpha2
kind: AKSNodeClass
metadata:
name: default
annotations:
kubernetes.io/description: "Basic AKSNodeClass for running Ubuntu2204 nodes"
spec:
imageFamily: Ubuntu2204