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

feat: add cgroup & sysctls to safe-cluster & safe-cluster-update-variant #2214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion modules/safer-cluster-update-variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ module "gke" {
node_pools_taints = var.node_pools_taints
node_pools_tags = var.node_pools_tags

node_pools_oauth_scopes = var.node_pools_oauth_scopes
node_pools_oauth_scopes = var.node_pools_oauth_scopes
node_pools_linux_node_configs_sysctls = var.node_pools_linux_node_configs_sysctls
node_pools_cgroup_mode = var.node_pools_cgroup_mode

cluster_autoscaling = var.cluster_autoscaling

Expand Down
21 changes: 21 additions & 0 deletions modules/safer-cluster-update-variant/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,27 @@ variable "node_pools_oauth_scopes" {
}
}

variable "node_pools_linux_node_configs_sysctls" {
type = map(map(string))
description = "Map of maps containing linux node config sysctls by node-pool name"

# Default is being set in variables_defaults.tf
default = {
all = {}
default-node-pool = {}
}
}
variable "node_pools_cgroup_mode" {
type = map(string)
description = "Map of strings containing cgroup node config by node-pool name"

# Default is being set in variables_defaults.tf
default = {
all = ""
default-node-pool = ""
}
}

variable "cluster_autoscaling" {
type = object({
enabled = bool
Expand Down
4 changes: 3 additions & 1 deletion modules/safer-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ module "gke" {
node_pools_taints = var.node_pools_taints
node_pools_tags = var.node_pools_tags

node_pools_oauth_scopes = var.node_pools_oauth_scopes
node_pools_oauth_scopes = var.node_pools_oauth_scopes
node_pools_linux_node_configs_sysctls = var.node_pools_linux_node_configs_sysctls
node_pools_cgroup_mode = var.node_pools_cgroup_mode

cluster_autoscaling = var.cluster_autoscaling

Expand Down
21 changes: 21 additions & 0 deletions modules/safer-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,27 @@ variable "node_pools_oauth_scopes" {
}
}

variable "node_pools_linux_node_configs_sysctls" {
type = map(map(string))
description = "Map of maps containing linux node config sysctls by node-pool name"

# Default is being set in variables_defaults.tf
default = {
all = {}
default-node-pool = {}
}
}
variable "node_pools_cgroup_mode" {
type = map(string)
description = "Map of strings containing cgroup node config by node-pool name"

# Default is being set in variables_defaults.tf
default = {
all = ""
default-node-pool = ""
}
}

variable "cluster_autoscaling" {
type = object({
enabled = bool
Expand Down
Loading