forked from Azure/aks-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Windows Metrics failure when High CPU (Azure#3962)
- Loading branch information
1 parent
be11bef
commit 1afec96
Showing
7 changed files
with
287 additions
and
4 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
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
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
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
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
35 changes: 35 additions & 0 deletions
35
test/e2e/kubernetes/workloads/validate-windows-cpu-consumption.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,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: validate-windows-cpu-consumption | ||
labels: | ||
app: validate-windows-cpu-consumption | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
name: iis-2019 | ||
labels: | ||
app: iis-2019 | ||
spec: | ||
containers: | ||
- name: iis | ||
image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 | ||
command: | ||
- powershell.exe | ||
- "-command" | ||
- "$result = 1; foreach ($number in 1..2147483647) {$result = $result * $number};" | ||
resources: | ||
limits: | ||
cpu: .25 | ||
memory: 800m | ||
requests: | ||
cpu: .25 | ||
memory: 300m | ||
ports: | ||
- containerPort: 80 | ||
nodeSelector: | ||
"kubernetes.io/os": windows | ||
selector: | ||
matchLabels: | ||
app: iis-2019 |
60 changes: 60 additions & 0 deletions
60
test/e2e/test_cluster_configs/windows/reproductions/high-cpu.json
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,60 @@ | ||
{ | ||
"env": { | ||
"VALIDATE_CPU_LOAD": true | ||
}, | ||
"options": { | ||
"allowedOrchestratorVersions": ["1.17", "1.18", "1.19"] | ||
}, | ||
"apiModel": { | ||
"apiVersion": "vlabs", | ||
"properties": { | ||
"orchestratorProfile": { | ||
"orchestratorType": "Kubernetes", | ||
"kubernetesConfig": { | ||
"useManagedIdentity": false | ||
} | ||
}, | ||
"masterProfile": { | ||
"count": 1, | ||
"dnsPrefix": "", | ||
"vmSize": "Standard_D2_v3" | ||
}, | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "linuxpool1", | ||
"count": 1, | ||
"vmSize": "Standard_D2_v3", | ||
"availabilityProfile": "VirtualMachineScaleSets" | ||
}, | ||
{ | ||
"name": "agentwin", | ||
"count": 1, | ||
"vmSize": "Standard_D2_v3", | ||
"osType": "Windows", | ||
"availabilityProfile": "VirtualMachineScaleSets", | ||
"scalesetPriority": "Spot" | ||
} | ||
], | ||
"windowsProfile": { | ||
"adminUsername": "azureuser", | ||
"adminPassword": "replacepassword1234$", | ||
"enableAutomaticUpdates": false, | ||
"sshEnabled": true, | ||
"windowsPublisher": "microsoft-aks", | ||
"windowsOffer": "aks-windows", | ||
"windowsSku": "2019-datacenter-core-smalldisk-2008", | ||
"imageVersion": "latest" | ||
}, | ||
"linuxProfile": { | ||
"adminUsername": "azureuser", | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |