Skip to content

Fix grow_root_partition_automatically for ClusterAutoscaler nodes#699

Open
artem-zinnatullin wants to merge 2 commits intovitobotta:mainfrom
artem-zinnatullin:az/fix-grow_root_partition_automatically-autoscaler
Open

Fix grow_root_partition_automatically for ClusterAutoscaler nodes#699
artem-zinnatullin wants to merge 2 commits intovitobotta:mainfrom
artem-zinnatullin:az/fix-grow_root_partition_automatically-autoscaler

Conversation

@artem-zinnatullin
Copy link
Contributor

With this change nodes created by ClusterAutoscaler now respect global grow_root_partition_automatically: false as expected:

grow_root_partition_automatically: false

addons:
  cluster_autoscaler:
    enabled: true

Checked on a node created by ClusterAutoscaler:

root@tommy-test-cx23-workers-pool-xxx:~# cat /var/lib/cloud/instance/user-data.txt
ls -la /etc/growroot-disabled
-rw-r--r-- 1 root root 5 Dec 23 02:16 /etc/growroot-disabled

root@tommy-test-cx23-workers-pool-xxx:~# cat /var/lib/cloud/instance/user-data.txt
#cloud-config
preserve_hostname: true



write_files:
- content: |
    true
  path: /etc/growroot-disabled

Fixes #698.

@sonarqubecloud
Copy link

@artem-zinnatullin
Copy link
Contributor Author

@vitobotta I merged master to get the CI builds working and it's ready for review, it's a very important fix 😅

@privatecoder
Copy link
Contributor

privatecoder commented Feb 12, 2026

@artem-zinnatullin check this (you have that change as well).

@vitobotta: For autoscaled nodes the grow_root_partition_automatically-setting isn't passed to cloud_init, so it falls back to true, which skips creating /etc/growroot-disabled.

I have just tested it with only these two lines added and it works fine, i.e. /etc/growroot-disabled is created on an autoscaled node with the global setting grow_root_partition_automatically: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global grow_root_partition_automatically: false is not respected for nodes created by ClusterAutoscaler

2 participants

Comments