File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
gke/standard/regional/node_system_config Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -48,3 +48,32 @@ resource "google_container_cluster" "default" {
4848 deletion_protection = false
4949}
5050# [END gke_standard_regional_node_system_config]
51+
52+ # [START gke_standard_regional_node_system_config_node_pool]
53+ resource "google_container_node_pool" "default" {
54+ name = " gke-standard-regional-node-pool"
55+ cluster = google_container_cluster. default . name
56+
57+ node_config {
58+ # Kubelet configuration
59+ kubelet_config {
60+ cpu_manager_policy = " static"
61+ }
62+
63+ linux_node_config {
64+ # Sysctl configuration
65+ sysctls = {
66+ " net.core.netdev_max_backlog" = " 10000"
67+ }
68+
69+ # Linux cgroup mode configuration
70+ cgroup_mode = " CGROUP_MODE_V2"
71+
72+ # Linux huge page configuration
73+ hugepages_config {
74+ hugepage_size_2m = " 1024"
75+ }
76+ }
77+ }
78+ }
79+ # [END gke_standard_regional_node_system_config_node_pool]
You can’t perform that action at this time.
0 commit comments