-
Notifications
You must be signed in to change notification settings - Fork 934
enable nested virt & set single process oom kill #8672
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
upodroid
wants to merge
1
commit into
kubernetes:main
Choose a base branch
from
upodroid:nested-virt
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.
+66
−77
Open
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,14 +60,6 @@ resource "google_project_iam_member" "k8s_infra_prow_viewers" { | |
| member = "group:[email protected]" | ||
| } | ||
|
|
||
| // Allow prow-deployer service account in k8s-infra-prow-build-trusted to deploy | ||
| // to the cluster defined in here | ||
| resource "google_project_iam_member" "prow_deployer_for_prow_build" { | ||
| project = module.project.project_id | ||
| role = "roles/container.admin" | ||
| member = "serviceAccount:prow-deployer@k8s-infra-prow-build-trusted.iam.gserviceaccount.com" | ||
| } | ||
|
|
||
| module "prow_build_cluster" { | ||
| source = "../modules/gke-cluster" | ||
| project_name = module.project.project_id | ||
|
|
@@ -86,18 +78,30 @@ module "prow_build_nodepool_c4_highmem_8_localssd" { | |
| cluster_name = module.prow_build_cluster.cluster.name | ||
| location = module.prow_build_cluster.cluster.location | ||
| node_locations = [ | ||
| "us-central1-a", | ||
| "us-central1-b", | ||
| "us-central1-c", | ||
| "us-central1-f", | ||
| ] | ||
| name = "pool6" | ||
| initial_count = 1 | ||
| min_count = 1 | ||
| max_count = 80 | ||
| machine_type = "c4-highmem-8" | ||
| disk_size_gb = 500 | ||
| disk_type = "hyperdisk-balanced" | ||
| service_account = module.prow_build_cluster.cluster_node_sa.email | ||
| name = "pool6" | ||
| initial_count = 1 | ||
| min_count = 1 | ||
| max_count = 250 # total across all zones | ||
| machine_type = "c4-highmem-8-lssd" | ||
| disk_size_gb = 100 | ||
| disk_type = "hyperdisk-balanced" | ||
| enable_nested_virtualization = true | ||
| service_account = module.prow_build_cluster.cluster_node_sa.email | ||
| // This taint exists to bias workloads on to the C4D nodepool first, if we can't secure a C4D node | ||
| // then we schedule on to a C4 node. C4D performs better than C4 but it is capacity constrained at times. | ||
| // Also, nested virt doesn't work on C4D or C4A | ||
| taints = [ | ||
| { | ||
| key = "spare" | ||
| value = "true" | ||
| effect = "PREFER_NO_SCHEDULE" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| module "prow_build_nodepool_c4d_highmem_8_localssd" { | ||
|
|
@@ -113,53 +117,13 @@ module "prow_build_nodepool_c4d_highmem_8_localssd" { | |
| name = "pool7" | ||
| initial_count = 1 | ||
| min_count = 10 | ||
| max_count = 80 | ||
| machine_type = "c4d-highmem-8-lssd" # has 2 local ssd disks attached | ||
| max_count = 250 # total across all zones | ||
| machine_type = "c4d-highmem-8-lssd" # has 1 local ssd disks attached | ||
| disk_size_gb = 100 | ||
| disk_type = "hyperdisk-balanced" | ||
| service_account = module.prow_build_cluster.cluster_node_sa.email | ||
| } | ||
|
|
||
|
|
||
| module "sig_node_node_pool_1_n4_highmem_8" { | ||
|
|
||
| source = "github.com/GoogleCloudPlatform/cloud-foundation-fabric//modules/gke-nodepool?ref=v39.0.0&depth=1" | ||
| project_id = module.project.project_id | ||
| name = "sig-node-pool1" | ||
| location = module.prow_build_cluster.cluster.location | ||
| cluster_name = module.prow_build_cluster.cluster.name | ||
|
|
||
| service_account = { | ||
| email = module.prow_build_cluster.cluster_node_sa.email | ||
| oauth_scopes = ["https://www.googleapis.com/auth/cloud-platform"] | ||
| } | ||
|
|
||
| nodepool_config = { | ||
| autoscaling = { | ||
| max_node_count = 10 | ||
| min_node_count = 1 # 1 per zone | ||
| } | ||
| management = { | ||
| auto_repair = true | ||
| auto_upgrade = true | ||
| } | ||
| } | ||
|
|
||
| node_config = { | ||
| machine_type = "n4-highmem-8" | ||
| disk_type = "hyperdisk-balanced" | ||
| image_type = "COS_CONTAINERD" | ||
| gvnic = true | ||
| workload_metadata_config_mode = "GKE_METADATA" | ||
| shielded_instance_config = { | ||
| enable_secure_boot = true | ||
| } | ||
| } | ||
|
|
||
|
|
||
| taints = { dedicated = { value = "sig-node", effect = "NO_SCHEDULE" } } | ||
| } | ||
|
|
||
| module "prow_build_nodepool_c4a_highmem_8_localssd" { | ||
| source = "../modules/gke-nodepool" | ||
| project_name = module.project.project_id | ||
|
|
@@ -169,11 +133,12 @@ module "prow_build_nodepool_c4a_highmem_8_localssd" { | |
| "us-central1-a", | ||
| "us-central1-b", | ||
| "us-central1-c", | ||
| "us-central1-f", | ||
| ] | ||
| name = "pool7-arm64" | ||
| initial_count = 1 | ||
| min_count = 1 | ||
| max_count = 10 | ||
| min_count = 3 | ||
| max_count = 100 # total across all zones | ||
| machine_type = "c4a-highmem-8-lssd" # has 2 local ssd disks attached | ||
| disk_size_gb = 100 | ||
| disk_type = "hyperdisk-balanced" | ||
|
|
||
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
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
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
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
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.
What's the use case? Nested virt can have poor performance, create noise for neighbors, and we need to make sure the VMs are not leaked ...
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.
Here is an example, trying to enable workflows like these in prow.
https://github.com/kubernetes/kops/blob/master/.github/workflows/e2e.yml
https://github.com/kubernetes/kops/actions/runs/18663330367/job/53208805245
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.
ACK, in kind we also use actions for this, which is mostly ~fine.