-
Notifications
You must be signed in to change notification settings - Fork 18
feat: add Node Auto Provisioning Benchmark in STLS Bootstrap Suite #960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8fc804b
feat: initial stls nap configs
5b1bc28
test: extra small scale
3eb53dc
test: specify tfvars
c1ab69f
fix: add karpenter yml
61a330e
feat: move stls nap to own folder
c63adea
test: specify sub
16c4f8f
fix: specify sub directly
4bad280
test: reduce loop count
73d1c95
test: large scale test
7f94253
feat: add stls nap pipeline
fadac36
test: revert test yaml
0fc1f78
chore: linting
0bdb439
feat: add support for mc tags
dcdbada
feat: add nap tag to tfvars
1018b3c
test: small test
152c4e7
test: large scale test
35685f9
test: spot only
e75271e
test: small scale spot
67e93b2
test: medium sccale spot
4df1dd1
feat: test on-demand only
c211a8e
test: revert test yaml
27f3585
chore: add newline
9dfd574
Revert "feat: add support for mc tags"
6ab8080
feat: add support for tags in tfvars
efab1e4
fix: update tfvars
8391dab
test: test changes
28527c0
Revert "test: test changes"
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
52 changes: 52 additions & 0 deletions
52
pipelines/perf-eval/Secure TLS Bootstrap Benchmark/node-auto-provisioning.yml
This file contains hidden or 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,52 @@ | ||
| trigger: none | ||
| schedules: | ||
| # Azure Large Scale Schedule | ||
| - cron: "0 3 * * *" | ||
| displayName: "3:00 AM Daily" | ||
| branches: | ||
| include: | ||
| - main | ||
| always: true | ||
|
|
||
| variables: | ||
| SCENARIO_TYPE: perf-eval | ||
| SCENARIO_NAME: stls-bootstrap-nap | ||
|
|
||
| stages: | ||
| - stage: azure_westus2_large | ||
| condition: | | ||
| or( | ||
| eq(variables['Build.CronSchedule.DisplayName'], 'Every day at 6:00 AM'), | ||
| eq(variables['Build.Reason'], 'Manual') | ||
| ) | ||
| dependsOn: [] | ||
| jobs: | ||
| - template: /jobs/competitive-test.yml | ||
| parameters: | ||
| cloud: azure | ||
| regions: | ||
| - westus2 | ||
| terraform_input_file_mapping: | ||
| - westus2: "scenarios/perf-eval/stls-bootstrap-nap/terraform-inputs/azure.tfvars" | ||
| engine: clusterloader2 | ||
| engine_input: | ||
| image: "ghcr.io/azure/clusterloader2:v20250423" | ||
| topology: karpenter | ||
| matrix: | ||
| large-scale-on-demand: | ||
| cpu_per_node: 2 | ||
| node_count: 1000 | ||
| pod_count: 1000 | ||
| scale_up_timeout: "60m" | ||
| scale_down_timeout: "60m" | ||
| node_label_selector: "karpenter.sh/nodepool = default" | ||
| node_selector: "{karpenter.sh/nodepool: default}" | ||
| loop_count: 1 | ||
| warmup_deployment: true | ||
| warmup_deployment_template: warmup_deployment.yaml | ||
| vm_size: Standard_D2ds_v4 | ||
| capacity_type: on-demand | ||
| max_parallel: 1 | ||
| timeout_in_minutes: 360 | ||
| credential_type: service_connection | ||
| ssh_key_enabled: false |
74 changes: 74 additions & 0 deletions
74
scenarios/perf-eval/stls-bootstrap-nap/kubernetes/karpenter_nodepool.azure.yml
This file contains hidden or 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,74 @@ | ||
| # Shared AKSNodeClass (common for both Spot and On-Demand) | ||
| --- | ||
| apiVersion: karpenter.azure.com/v1alpha2 | ||
| kind: AKSNodeClass | ||
| metadata: | ||
| name: default | ||
| annotations: | ||
| kubernetes.io/description: "General purpose AKSNodeClass for running Ubuntu2204 nodes" | ||
| spec: | ||
| imageFamily: Ubuntu2204 | ||
|
|
||
| # On-Demand NodePool (default) | ||
| --- | ||
| apiVersion: karpenter.sh/v1 | ||
| kind: NodePool | ||
| metadata: | ||
| name: default | ||
| annotations: | ||
| kubernetes.io/description: "General purpose On-Demand NodePool" | ||
| spec: | ||
| disruption: | ||
| consolidationPolicy: WhenEmpty | ||
| consolidateAfter: 1s | ||
| budgets: | ||
| - nodes: "100%" | ||
| template: | ||
| spec: | ||
| nodeClassRef: | ||
| group: karpenter.azure.com | ||
| kind: AKSNodeClass | ||
| name: default | ||
| expireAfter: Never | ||
| requirements: | ||
| - key: kubernetes.io/os | ||
| operator: In | ||
| values: ["linux"] | ||
| - key: karpenter.sh/capacity-type | ||
| operator: In | ||
| values: ["on-demand"] | ||
| - key: karpenter.azure.com/sku-name | ||
| operator: In | ||
| values: [Standard_D2_v5] | ||
|
|
||
| # Spot NodePool | ||
| --- | ||
| apiVersion: karpenter.sh/v1 | ||
| kind: NodePool | ||
| metadata: | ||
| name: spot | ||
| annotations: | ||
| kubernetes.io/description: "Spot NodePool for burstable cost-efficient workloads" | ||
| spec: | ||
| disruption: | ||
| consolidationPolicy: WhenEmpty | ||
| consolidateAfter: 1s | ||
| budgets: | ||
| - nodes: "100%" | ||
| template: | ||
| spec: | ||
| nodeClassRef: | ||
| group: karpenter.azure.com | ||
| kind: AKSNodeClass | ||
| name: default | ||
| expireAfter: Never | ||
| requirements: | ||
| - key: kubernetes.io/os | ||
| operator: In | ||
| values: ["linux"] | ||
| - key: karpenter.sh/capacity-type | ||
| operator: In | ||
| values: ["spot"] | ||
| - key: karpenter.azure.com/sku-name | ||
| operator: In | ||
| values: [Standard_D2_v5] |
49 changes: 49 additions & 0 deletions
49
scenarios/perf-eval/stls-bootstrap-nap/terraform-inputs/azure.tfvars
This file contains hidden or 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,49 @@ | ||
| scenario_type = "perf-eval" | ||
| scenario_name = "stls-bootstrap-nap" | ||
| deletion_delay = "2h" | ||
| owner = "aks" | ||
| tags = { | ||
| enable-stls-nap = "true" | ||
| } | ||
|
|
||
| aks_config_list = [] | ||
|
|
||
| aks_cli_config_list = [ | ||
| { | ||
| role = "nap" | ||
| aks_name = "nap" | ||
| sku_tier = "standard" | ||
| aks_custom_headers = [ | ||
| "AKSHTTPCustomFeatures=Microsoft.ContainerService/EnableSecureTLSBootstrapping" | ||
| ] | ||
| kubernetes_version = "1.33" | ||
| default_node_pool = { | ||
| name = "system" | ||
| node_count = 5 | ||
| vm_size = "Standard_D4_v5" | ||
| } | ||
| extra_node_pool = [] | ||
| optional_parameters = [ | ||
| { | ||
| name = "node-provisioning-mode" | ||
| value = "Auto" | ||
| }, | ||
| { | ||
| name = "network-plugin" | ||
| value = "azure" | ||
| }, | ||
| { | ||
| name = "network-plugin-mode" | ||
| value = "overlay" | ||
| }, | ||
| { | ||
| name = "node-init-taints" | ||
| value = "CriticalAddonsOnly=true:NoSchedule" | ||
| }, | ||
| { | ||
| name = "pod-cidr" | ||
| value = "10.128.0.0/11" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
4 changes: 4 additions & 0 deletions
4
scenarios/perf-eval/stls-bootstrap-nap/terraform-test-inputs/azure.json
This file contains hidden or 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,4 @@ | ||
| { | ||
| "run_id" : "123456789", | ||
| "region" : "westus2" | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.