-
Notifications
You must be signed in to change notification settings - Fork 18
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
Open
KananMehta
wants to merge
12
commits into
main
Choose a base branch
from
kananmehta/add-naptest
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d6a1d30
feat: initial stls nap configs
5761d87
test: extra small scale
2d39f8c
test: specify tfvars
62bcd75
fix: add karpenter yml
9c3ee9b
feat: move stls nap to own folder
415703a
test: specify sub
57319d4
fix: specify sub directly
ae70851
test: reduce loop count
b4c96fc
test: large scale test
cd346fe
feat: add stls nap pipeline
b51a5ee
test: revert test yaml
daec3c3
chore: linting
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
65 changes: 65 additions & 0 deletions
65
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,65 @@ | ||
| 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 | ||
| large-scale-spot: | ||
| cpu_per_node: 2 | ||
| node_count: 1000 | ||
| pod_count: 1000 | ||
| scale_up_timeout: "60m" | ||
| scale_down_timeout: "60m" | ||
| node_label_selector: "karpenter.sh/nodepool = spot" | ||
| node_selector: "{karpenter.sh/nodepool: spot}" | ||
| loop_count: 1 | ||
| warmup_deployment: true | ||
| warmup_deployment_template: warmup_deployment.yaml | ||
| vm_size: Standard_D2ds_v4 | ||
| capacity_type: spot | ||
| 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] |
46 changes: 46 additions & 0 deletions
46
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,46 @@ | ||
| scenario_type = "perf-eval" | ||
| scenario_name = "stls-bootstrap-nap" | ||
| deletion_delay = "2h" | ||
| owner = "aks" | ||
|
|
||
| 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't have NAP create nodes using secure TLS bootstrapping, we'd need to enable the feature in the particular sub/region