Skip to content

Commit

Permalink
Add default kubelet config for node config for pools and clusters
Browse files Browse the repository at this point in the history
Needed by GCP now, setting to the default values.

Signed-off-by: Hayden Blauzvern <[email protected]>
  • Loading branch information
haydentherapper committed Aug 21, 2024
1 parent 42ffcb5 commit 2488d07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 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,10 @@ 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
}
}

resource_labels = {
Expand Down
5 changes: 5 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,11 @@ 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
}

// 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

0 comments on commit 2488d07

Please sign in to comment.