Skip to content

Commit

Permalink
Define kubelet_config in beta
Browse files Browse the repository at this point in the history
  • Loading branch information
m10ev committed Nov 29, 2020
1 parent 6c52d87 commit 5ba88a6
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 35 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ The node_pools variable takes the following parameters:
| auto_repair | Whether the nodes will be automatically repaired | true | Optional |
| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional |
| auto_upgrade | Whether the nodes will be automatically upgraded | true (if cluster is regional) | Optional |
| cpu_manager_policy | The CPU manager policy on the node. One of "none" or "static". | "none" | Optional |
| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100 | Optional |
| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional |
| effect | Effect for the taint | | Required |
Expand Down
2 changes: 2 additions & 0 deletions autogen/main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ The node_pools variable takes the following parameters:
| auto_repair | Whether the nodes will be automatically repaired | true | Optional |
| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional |
| auto_upgrade | Whether the nodes will be automatically upgraded | true (if cluster is regional) | Optional |
{% if beta_cluster %}
| cpu_manager_policy | The CPU manager policy on the node. One of "none" or "static". | "none" | Optional |
{% endif %}
| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100 | Optional |
| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional |
| effect | Effect for the taint | | Required |
Expand Down
8 changes: 4 additions & 4 deletions autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down Expand Up @@ -524,6 +520,10 @@ resource "google_container_node_pool" "pools" {
}

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
{% endif %}

shielded_instance_config {
Expand Down
4 changes: 0 additions & 4 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down
8 changes: 4 additions & 4 deletions modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down Expand Up @@ -481,6 +477,10 @@ resource "google_container_node_pool" "pools" {

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down
8 changes: 4 additions & 4 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down Expand Up @@ -409,6 +405,10 @@ resource "google_container_node_pool" "pools" {

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down
8 changes: 4 additions & 4 deletions modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down Expand Up @@ -462,6 +458,10 @@ resource "google_container_node_pool" "pools" {

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down
8 changes: 4 additions & 4 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down Expand Up @@ -390,6 +386,10 @@ resource "google_container_node_pool" "pools" {

boot_disk_kms_key = lookup(each.value, "boot_disk_kms_key", "")

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}

shielded_instance_config {
enable_secure_boot = lookup(each.value, "enable_secure_boot", false)
enable_integrity_monitoring = lookup(each.value, "enable_integrity_monitoring", true)
Expand Down
1 change: 0 additions & 1 deletion modules/private-cluster-update-variant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ The node_pools variable takes the following parameters:
| auto_repair | Whether the nodes will be automatically repaired | true | Optional |
| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional |
| auto_upgrade | Whether the nodes will be automatically upgraded | true (if cluster is regional) | Optional |
| cpu_manager_policy | The CPU manager policy on the node. One of "none" or "static". | "none" | Optional |
| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100 | Optional |
| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional |
| effect | Effect for the taint | | Required |
Expand Down
4 changes: 0 additions & 4 deletions modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down
1 change: 0 additions & 1 deletion modules/private-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ The node_pools variable takes the following parameters:
| auto_repair | Whether the nodes will be automatically repaired | true | Optional |
| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional |
| auto_upgrade | Whether the nodes will be automatically upgraded | true (if cluster is regional) | Optional |
| cpu_manager_policy | The CPU manager policy on the node. One of "none" or "static". | "none" | Optional |
| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100 | Optional |
| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional |
| effect | Effect for the taint | | Required |
Expand Down
4 changes: 0 additions & 4 deletions modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ resource "google_container_cluster" "primary" {
node_metadata = workload_metadata_config.value.node_metadata
}
}

kubelet_config {
cpu_manager_policy = lookup(each.value, "cpu_manager_policy", "none")
}
}
}

Expand Down

0 comments on commit 5ba88a6

Please sign in to comment.