We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 temporary rotation_name property to main.tf to change size of Virtual machine scale sets
Error: temporary_name_for_rotation must be specified when updating vm_size
temporary_name_for_rotation
vm_size
azurerm_3.48.0
** in the main.tf add ** dynamic "default_node_pool" { for_each = var.enable_auto_scaling == true ? [] : ["default_node_pool_manually_scaled"] content { name = var.agents_pool_name vm_size = var.agents_size enable_auto_scaling = var.enable_auto_scaling enable_host_encryption = var.enable_host_encryption enable_node_public_ip = var.enable_node_public_ip max_count = null max_pods = var.agents_max_pods min_count = null node_count = var.agents_count node_labels = var.agents_labels node_taints = var.agents_taints only_critical_addons_enabled = var.only_critical_addons_enabled orchestrator_version = var.orchestrator_version os_disk_size_gb = var.os_disk_size_gb os_disk_type = var.os_disk_type pod_subnet_id = var.pod_subnet_id scale_down_mode = var.scale_down_mode tags = merge(var.tags, var.agents_tags) type = var.agents_type ultra_ssd_enabled = var.ultra_ssd_enabled vnet_subnet_id = var.vnet_subnet_id zones = var.agents_availability_zones + temporary_name_for_rotation = var.temporary_name_for_rotation dynamic "kubelet_config" { for_each = var.agents_pool_kubelet_configs content { allowed_unsafe_sysctls = kubelet_config.value.allowed_unsafe_sysctls container_log_max_line = kubelet_config.value.container_log_max_line container_log_max_size_mb = kubelet_config.value.container_log_max_size_mb cpu_cfs_quota_enabled = kubelet_config.value.cpu_cfs_quota_enabled cpu_cfs_quota_period = kubelet_config.value.cpu_cfs_quota_period cpu_manager_policy = kubelet_config.value.cpu_manager_policy image_gc_high_threshold = kubelet_config.value.image_gc_high_threshold image_gc_low_threshold = kubelet_config.value.image_gc_low_threshold pod_max_pid = kubelet_config.value.pod_max_pid topology_manager_policy = kubelet_config.value.topology_manager_policy } } dynamic "linux_os_config" { for_each = var.agents_pool_linux_os_configs content { swap_file_size_mb = linux_os_config.value.swap_file_size_mb transparent_huge_page_defrag = linux_os_config.value.transparent_huge_page_defrag transparent_huge_page_enabled = linux_os_config.value.transparent_huge_page_enabled dynamic "sysctl_config" { for_each = linux_os_config.value.sysctl_configs == null ? [] : linux_os_config.value.sysctl_configs content { fs_aio_max_nr = sysctl_config.value.fs_aio_max_nr fs_file_max = sysctl_config.value.fs_file_max fs_inotify_max_user_watches = sysctl_config.value.fs_inotify_max_user_watches fs_nr_open = sysctl_config.value.fs_nr_open kernel_threads_max = sysctl_config.value.kernel_threads_max net_core_netdev_max_backlog = sysctl_config.value.net_core_netdev_max_backlog net_core_optmem_max = sysctl_config.value.net_core_optmem_max net_core_rmem_default = sysctl_config.value.net_core_rmem_default net_core_rmem_max = sysctl_config.value.net_core_rmem_max net_core_somaxconn = sysctl_config.value.net_core_somaxconn net_core_wmem_default = sysctl_config.value.net_core_wmem_default net_core_wmem_max = sysctl_config.value.net_core_wmem_max net_ipv4_ip_local_port_range_max = sysctl_config.value.net_ipv4_ip_local_port_range_max net_ipv4_ip_local_port_range_min = sysctl_config.value.net_ipv4_ip_local_port_range_min net_ipv4_neigh_default_gc_thresh1 = sysctl_config.value.net_ipv4_neigh_default_gc_thresh1 net_ipv4_neigh_default_gc_thresh2 = sysctl_config.value.net_ipv4_neigh_default_gc_thresh2 net_ipv4_neigh_default_gc_thresh3 = sysctl_config.value.net_ipv4_neigh_default_gc_thresh3 net_ipv4_tcp_fin_timeout = sysctl_config.value.net_ipv4_tcp_fin_timeout net_ipv4_tcp_keepalive_intvl = sysctl_config.value.net_ipv4_tcp_keepalive_intvl net_ipv4_tcp_keepalive_probes = sysctl_config.value.net_ipv4_tcp_keepalive_probes net_ipv4_tcp_keepalive_time = sysctl_config.value.net_ipv4_tcp_keepalive_time net_ipv4_tcp_max_syn_backlog = sysctl_config.value.net_ipv4_tcp_max_syn_backlog net_ipv4_tcp_max_tw_buckets = sysctl_config.value.net_ipv4_tcp_max_tw_buckets net_ipv4_tcp_tw_reuse = sysctl_config.value.net_ipv4_tcp_tw_reuse net_netfilter_nf_conntrack_buckets = sysctl_config.value.net_netfilter_nf_conntrack_buckets net_netfilter_nf_conntrack_max = sysctl_config.value.net_netfilter_nf_conntrack_max vm_max_map_count = sysctl_config.value.vm_max_map_count vm_swappiness = sysctl_config.value.vm_swappiness vm_vfs_cache_pressure = sysctl_config.value.vm_vfs_cache_pressure } } } } } } dynamic "default_node_pool" { for_each = var.enable_auto_scaling == true ? ["default_node_pool_auto_scaled"] : [] content { name = var.agents_pool_name vm_size = var.agents_size enable_auto_scaling = var.enable_auto_scaling enable_host_encryption = var.enable_host_encryption enable_node_public_ip = var.enable_node_public_ip max_count = var.agents_max_count max_pods = var.agents_max_pods min_count = var.agents_min_count node_labels = var.agents_labels node_taints = var.agents_taints only_critical_addons_enabled = var.only_critical_addons_enabled orchestrator_version = var.orchestrator_version os_disk_size_gb = var.os_disk_size_gb os_disk_type = var.os_disk_type pod_subnet_id = var.pod_subnet_id scale_down_mode = var.scale_down_mode tags = merge(var.tags, var.agents_tags) type = var.agents_type ultra_ssd_enabled = var.ultra_ssd_enabled vnet_subnet_id = var.vnet_subnet_id zones = var.agents_availability_zones + temporary_name_for_rotation = var.temporary_name_for_rotation dynamic "kubelet_config" { for_each = var.agents_pool_kubelet_configs content { allowed_unsafe_sysctls = kubelet_config.value.allowed_unsafe_sysctls container_log_max_line = kubelet_config.value.container_log_max_line container_log_max_size_mb = kubelet_config.value.container_log_max_size_mb cpu_cfs_quota_enabled = kubelet_config.value.cpu_cfs_quota_enabled cpu_cfs_quota_period = kubelet_config.value.cpu_cfs_quota_period cpu_manager_policy = kubelet_config.value.cpu_manager_policy image_gc_high_threshold = kubelet_config.value.image_gc_high_threshold image_gc_low_threshold = kubelet_config.value.image_gc_low_threshold pod_max_pid = kubelet_config.value.pod_max_pid topology_manager_policy = kubelet_config.value.topology_manager_policy } } } } ** in the variables.tf add ** variable "temporary_name_for_rotation" { type = string default = "changesize" description = "Specifies the name of the temporary node pool used to cycle the default node pool for VM resizing" }
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#temporary_name_for_rotation
The text was updated successfully, but these errors were encountered:
@Didjacome thanks for opening this issue, very good proposal, I hope we can deliver this feature in our next release.
Sorry, something went wrong.
@lonegunmanb thank you very much for being able to help
I remain at your disposal
No branches or pull requests
Is there an existing issue for this?
Description
add temporary rotation_name property to main.tf to change size of Virtual machine scale sets
Error:
temporary_name_for_rotation
must be specified when updatingvm_size
New or Affected Resource(s)/Data Source(s)
azurerm_3.48.0
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#temporary_name_for_rotation
The text was updated successfully, but these errors were encountered: