-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP: test/e2e: update (part of) balloons tests.
Update balloons tests 1, 3, 5, 8, 9, and 20 for helm-based deployment and configuration by custom resources. TODO: Test 10 has been updated but seems to fail. Tests 2, 6, 7, and 21 still need to be updated. Signed-off-by: Krisztian Litkey <[email protected]>
- Loading branch information
Showing
21 changed files
with
338 additions
and
259 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
11 changes: 11 additions & 0 deletions
11
test/e2e/policies.test-suite/balloons/n4c16/test02-prometheus-metrics/code.var.sh
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
56 changes: 30 additions & 26 deletions
56
test/e2e/policies.test-suite/balloons/n4c16/test03-reserved/balloons-reserved.cfg
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 |
---|---|---|
@@ -1,26 +1,30 @@ | ||
policy: | ||
ReservedResources: | ||
CPU: cpuset:0-2 | ||
balloons: | ||
IdleCPUClass: idle-class | ||
ReservedPoolNamespaces: | ||
- "monitor-*" | ||
- "*-log*" | ||
BalloonTypes: | ||
- Name: reserved | ||
Namespaces: | ||
- my-exact-name | ||
CPUClass: reserved-class | ||
- Name: default | ||
MinCPUs: 1 | ||
- Name: full-core | ||
MinCPUs: 2 | ||
MaxCPUs: 2 | ||
CPUClass: turbo | ||
MinBalloons: 2 | ||
logger: | ||
Debug: policy | ||
Klog: | ||
skip_headers: true | ||
instrumentation: | ||
HTTPEndpoint: ":8891" | ||
policyConfig: | ||
reservedResources: | ||
cpu: cpuset:0-2 | ||
|
||
idleCPUClass: idle-class | ||
reservedPoolNamespaces: | ||
- "monitor-*" | ||
- "*-log*" | ||
balloonTypes: | ||
- name: reserved | ||
namespaces: | ||
- my-exact-name | ||
cpuClass: reserved-class | ||
- name: default | ||
minCPUs: 1 | ||
- name: full-core | ||
minCPUs: 2 | ||
maxCPUs: 2 | ||
cpuClass: turbo | ||
minBalloons: 2 | ||
|
||
commonConfig: | ||
instrumentation: | ||
httpEndpoint: ":8891" | ||
log: | ||
debug: | ||
policy: true | ||
logSource: true | ||
klog: | ||
skip_headers: true |
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
37 changes: 20 additions & 17 deletions
37
test/e2e/policies.test-suite/balloons/n4c16/test05-namespace/balloons-namespace.cfg
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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
policy: | ||
ReservedResources: | ||
CPU: 1 | ||
balloons: | ||
PinCPU: true | ||
PinMemory: true | ||
BalloonTypes: | ||
- Name: nsballoon | ||
Namespaces: | ||
- "*" | ||
MinCPUs: 2 | ||
MaxCPUs: 4 | ||
PreferPerNamespaceBalloon: true | ||
logger: | ||
Debug: policy | ||
instrumentation: | ||
HTTPEndpoint: ":8891" | ||
policyConfig: | ||
reservedResources: | ||
cpu: "1" | ||
|
||
pinCPU: true | ||
pinMemory: true | ||
balloonTypes: | ||
- name: nsballoon | ||
namespaces: | ||
- "*" | ||
minCPUs: 2 | ||
maxCPUs: 4 | ||
preferPerNamespaceBalloon: true | ||
|
||
commonConfig: | ||
log: | ||
debug: | ||
policy: true | ||
instrumentation: | ||
httpEndpoint: ":8891" |
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
11 changes: 11 additions & 0 deletions
11
test/e2e/policies.test-suite/balloons/n4c16/test06-update-configmap/code.var.sh
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
11 changes: 11 additions & 0 deletions
11
test/e2e/policies.test-suite/balloons/n4c16/test07-maxballoons/code.var.sh
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
44 changes: 23 additions & 21 deletions
44
test/e2e/policies.test-suite/balloons/n4c16/test08-numa/balloons-numa.cfg
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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
policy: | ||
AvailableResources: | ||
CPU: cpuset:0-15 | ||
policyConfig: | ||
availableResources: | ||
cpu: cpuset:0-15 | ||
# Reserve one of our CPUs (cpu15) for kube-system tasks. | ||
ReservedResources: | ||
CPU: 1 | ||
balloons: | ||
PinCPU: true | ||
PinMemory: true | ||
BalloonTypes: | ||
- Name: fit-in-numa | ||
# All (non-system) containers are assigned to this balloon | ||
# type | ||
Namespaces: | ||
- "*" | ||
# Prevent a balloon to be inflated larger than a NUMA node | ||
MinCPUs: 0 | ||
MaxCPUs: 4 | ||
AllocationPriority: 0 | ||
PreferNewBalloons: false | ||
instrumentation: | ||
HTTPEndpoint: ":8891" | ||
reservedResources: | ||
cpu: "1" | ||
|
||
pinCPU: true | ||
pinMemory: true | ||
balloonTypes: | ||
- name: fit-in-numa | ||
# All (non-system) containers are assigned to this balloon | ||
# type | ||
namespaces: | ||
- "*" | ||
# Prevent a balloon to be inflated larger than a NUMA node | ||
minCPUs: 0 | ||
maxCPUs: 4 | ||
allocatorPriority: high | ||
preferNewBalloons: false | ||
|
||
commonConfig: | ||
instrumentation: | ||
httpEndpoint: ":8891" |
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
55 changes: 29 additions & 26 deletions
55
test/e2e/policies.test-suite/balloons/n4c16/test09-isolated/balloons-isolated.cfg
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 |
---|---|---|
@@ -1,26 +1,29 @@ | ||
policy: | ||
ReservedResources: | ||
CPU: cpuset:0 | ||
balloons: | ||
BalloonTypes: | ||
- Name: isolated-pods | ||
MinCPUs: 0 | ||
MaxCPUs: 2 | ||
CPUClass: turbo | ||
MinBalloons: 2 | ||
PreferNewBalloons: true | ||
PreferSpreadingPods: false | ||
- Name: isolated-ctrs | ||
MinCPUs: 1 | ||
MaxCPUs: 1 | ||
CPUClass: turbo | ||
MinBalloons: 2 | ||
PreferNewBalloons: true | ||
PreferSpreadingPods: true | ||
instrumentation: | ||
HTTPEndpoint: :8891 | ||
PrometheusExport: true | ||
logger: | ||
Debug: policy | ||
Klog: | ||
skip_headers: true | ||
policyConfig: | ||
reservedResources: | ||
cpu: cpuset:0 | ||
|
||
balloonTypes: | ||
- name: isolated-pods | ||
minCPUs: 0 | ||
maxCPUs: 2 | ||
cpuClass: turbo | ||
minBalloons: 2 | ||
preferNewBalloons: true | ||
preferSpreadingPods: false | ||
- name: isolated-ctrs | ||
minCPUs: 1 | ||
maxCPUs: 1 | ||
cpuClass: turbo | ||
minBalloons: 2 | ||
preferNewBalloons: true | ||
preferSpreadingPods: true | ||
|
||
commonConfig: | ||
instrumentation: | ||
httpEndpoint: :8891 | ||
prometheusExport: true | ||
log: | ||
debug: | ||
policy: true | ||
klog: | ||
skip_headers: true |
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
64 changes: 33 additions & 31 deletions
64
.../e2e/policies.test-suite/balloons/n4c16/test10-allocator-opts/balloons-allocator-opts.cfg
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 |
---|---|---|
@@ -1,31 +1,33 @@ | ||
policy: | ||
Active: balloons | ||
ReservedResources: | ||
CPU: 1 | ||
balloons: | ||
AllocatorTopologyBalancing: true | ||
PreferSpreadOnPhysicalCores: true | ||
BalloonTypes: | ||
- Name: policydefaults | ||
MinCPUs: 2 | ||
MinBalloons: 2 | ||
- Name: topo1cores0 | ||
MinCPUs: 2 | ||
MinBalloons: 2 | ||
PreferSpreadOnPhysicalCores: false | ||
- Name: topo0cores1 | ||
AllocatorTopologyBalancing: false | ||
PreferSpreadOnPhysicalCores: true | ||
- Name: topo0cores0 | ||
AllocatorTopologyBalancing: false | ||
PreferSpreadOnPhysicalCores: false | ||
- Name: topo1cores1 | ||
AllocatorTopologyBalancing: true | ||
PreferSpreadOnPhysicalCores: true | ||
instrumentation: | ||
HTTPEndpoint: :8891 | ||
PrometheusExport: true | ||
logger: | ||
Debug: policy | ||
Klog: | ||
skip_headers: true | ||
policyConfig: | ||
reservedResources: | ||
cpu: "1" | ||
|
||
allocatorTopologyBalancing: true | ||
preferSpreadOnPhysicalCores: true | ||
balloonTypes: | ||
- name: policydefaults | ||
minCPUs: 2 | ||
minBalloons: 2 | ||
- name: topo1cores0 | ||
minCPUs: 2 | ||
minBalloons: 2 | ||
preferSpreadOnPhysicalCores: false | ||
- name: topo0cores1 | ||
allocatorTopologyBalancing: false | ||
preferSpreadOnPhysicalCores: true | ||
- name: topo0cores0 | ||
allocatorTopologyBalancing: false | ||
preferSpreadOnPhysicalCores: false | ||
- name: topo1cores1 | ||
allocatorTopologyBalancing: true | ||
preferSpreadOnPhysicalCores: true | ||
|
||
commonConfig: | ||
instrumentation: | ||
httpEndpoint: :8891 | ||
prometheusExport: true | ||
log: | ||
debug: | ||
policy: true | ||
klog: | ||
skip_headers: true |
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
Oops, something went wrong.