Skip to content

Commit a29cf02

Browse files
feat(upgrade): deprecated minFreeDiskSpaceGB and add skipGarbageCollectionThresholdCheck (#706)
* feat(upgrade): deprecated minFreeDiskSpaceGB and add skipGarbageCollectionThresholdCheck --------- Signed-off-by: PoAn Yang <[email protected]> Co-authored-by: Jillian <[email protected]>
1 parent 8cbf3c6 commit a29cf02

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/upgrade/automatic.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -142,29 +142,29 @@ Make sure to check [Upgrade support matrix](#upgrade-support-matrix) section fir
142142
143143
## Free system partition space requirement
144144
145-
_Available as of v1.2.0_
145+
_Available as of v1.5.0_
146146
147-
The minimum free system partition space requirement in Harvester v1.2.0 is 30 GiB, which will be revised in each release.
147+
Harvester loads images on each node during upgrades. When disk usage exceeds the kubelet's garbage collection threshold, the kubelet deletes unused images to free up space. This may cause issues in airgapped environments because the images are not available on the node.
148148
149-
Harvester will check the amount of free system partition space on each node when you select **Upgrade**. If any node does not meet the requirement, the upgrade will be denied as follows
149+
Harvester v1.5.0 includes checks that ensure nodes do not trigger garbage collection after loading new images.
150150
151-
![](/img/v1.2/upgrade/upgrade_free_space_check.png)
151+
![](/img/v1.5/upgrade/upgrade_free_space_check.png)
152152
153-
If some nodes do not have enough free system partition space, but you still want to try upgrading, you can customize the upgrade by updating the `harvesterhci.io/minFreeDiskSpaceGB` annotation of `Version` object.
153+
If you want to try upgrading even if the free system partition space is insufficient on some nodes, you can update the `harvesterhci.io/skipGarbageCollectionThresholdCheck: true` annotation of the `Version` object.
154154
155155
```
156156
apiVersion: harvesterhci.io/v1beta1
157157
kind: Version
158158
metadata:
159159
annotations:
160-
harvesterhci.io/minFreeDiskSpaceGB: "30" # the value is pre-defined and may be customized
161-
name: 1.2.0
160+
harvesterhci.io/skipGarbageCollectionThresholdCheck: true
161+
name: 1.5.0
162162
namespace: harvester-system
163163
spec:
164164
isoChecksum: <SHA-512 checksum of the ISO>
165165
isoURL: http://192.168.0.181:8000/harvester-master-amd64.iso
166-
minUpgradableVersion: 1.1.2
167-
releaseDate: "20230609"
166+
minUpgradableVersion: 1.4.1
167+
releaseDate: "20250630"
168168
```
169169
170170
:::caution
Loading

0 commit comments

Comments
 (0)