-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add samples for static and dynamic template nodes Signed-off-by: vadasambar <[email protected]>
- Loading branch information
1 parent
e6cd712
commit 1d8f7ca
Showing
3 changed files
with
98 additions
and
5 deletions.
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
15 changes: 15 additions & 0 deletions
15
cluster-autoscaler/cloudprovider/kwok/samples/dynamic_nodegroups_config.yaml
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
templateNodesFrom: cluster # possible values: [cluster,file] | ||
cluster: | ||
nodegroups: | ||
# if you want to treat nodes with same instance type as a nodegroup | ||
# e.g., | ||
# node1: m5.xlarge | ||
# node2: c5.xlarge | ||
# node3: m5.xlarge | ||
# nodegroup1: [node1,node3] | ||
# nodegroup2: [node2] | ||
fromNodeLabelKey: "node.kubernetes.io/instance-type" | ||
# you can either specify fromNodeLabelKey OR fromNodeAnnotation | ||
# (both are not allowed) | ||
# fromNodeAnnotation: "eks.amazonaws.com/nodegroup" | ||
file: {} |
17 changes: 17 additions & 0 deletions
17
cluster-autoscaler/cloudprovider/kwok/samples/static_nodegroups_config.yaml
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
templateNodesFrom: filepath # possible values: [cluster,file] | ||
cluster: {} | ||
file: | ||
path: "/etc/node-templates.yaml" | ||
nodegroups: | ||
# if you want to treat nodes with same instance type as a nodegroup | ||
# e.g., | ||
# node1: m5.xlarge | ||
# node2: c5.xlarge | ||
# node3: m5.xlarge | ||
# nodegroup1: [node1,node3] | ||
# nodegroup2: [node2] | ||
fromNodeLabelKey: "node.kubernetes.io/instance-type" | ||
# you can either specify fromNodeLabelKey OR fromNodeAnnotation | ||
# (both are not allowed) | ||
# fromNodeAnnotation: "eks.amazonaws.com/nodegroup" |