Skip to content
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

Add default kubelet config for node config for pools and clusters #1234

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions terraform/gcp/modules/gke_cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ resource "google_container_cluster" "cluster" {
tags = [local.cluster_network_tag]
service_account = google_service_account.gke-sa.email
oauth_scopes = var.oauth_scopes
kubelet_config {
cpu_cfs_quota = false
pod_pids_limit = 0
cpu_manager_policy = "none"
}
}

resource_labels = {
Expand Down
6 changes: 6 additions & 0 deletions terraform/gcp/modules/gke_cluster/node_pool.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ resource "google_container_node_pool" "cluster_nodes" {
service_account = google_service_account.gke-sa.email
oauth_scopes = ["https://www.googleapis.com/auth/cloud-platform"]

kubelet_config {
cpu_cfs_quota = false
pod_pids_limit = 0
cpu_manager_policy = "none"
}

// Protect node metadata and enable Workload Identity
// for this node pool. "SECURE" just protects the metadata.
// "EXPOSE" or not set allows for cluster takeover.
Expand Down