-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b91a2d3
commit 3177995
Showing
1 changed file
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,9 @@ $ helm delete karpenter --namespace kube-system | |
| `nodePools.disruption.consolidationPolicy` - Required Field | WhenEmptyOrUnderutilized | Consolidation policy for underutilized nodes | | ||
| `nodePools.disruption.consolidateAfter` - Required Field | 1m | Time before consolidating underutilized nodes | | ||
|
||
### Example `values.yaml` | ||
### Example1 `values.yaml` | ||
|
||
Below is an example for creation of a nodepool which can be modified inside values.yaml . | ||
|
||
```yaml | ||
nodePools: | ||
|
@@ -87,6 +89,58 @@ nodePools: | |
This `values.yaml` example deploys a Karpenter setup with a NodePool named `default-nodepool`, containing specifications such as labels, annotations, requirements, taints, node class, and limits. | ||
|
||
### Example2 `values.yaml` | ||
|
||
```yaml | ||
nodePools: | ||
- name: default | ||
requirements: | ||
- 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" | ||
- key: karpenter.k8s.aws/instance-category | ||
operator: In | ||
values: | ||
- "t" | ||
- "m" | ||
- "r" | ||
- key: karpenter.k8s.aws/instance-generation | ||
operator: Gt | ||
values: | ||
- "2" | ||
nodeClass: | ||
group: karpenter.k8s.aws | ||
kind: EC2NodeClass | ||
name: default | ||
expireAfter: 720h | ||
limits: | ||
cpu: "1000" | ||
disruption: | ||
consolidationPolicy: WhenEmptyOrUnderutilized | ||
consolidateAfter: 1m | ||
annotations: | ||
example.com/owner: "my-team" | ||
example.com/maintainer: "[email protected]" | ||
# taints: | ||
# - key: "example.com/special-taint" | ||
# value: "special-value" | ||
# effect: "NoExecute" | ||
labels: | ||
environment: production | ||
team: "engineering" | ||
``` | ||
|
||
|
||
### Notes: | ||
|
||
- Karpenter automatically creates and manages NodePools as part of the installation process. | ||
|