You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add annotation to ignore local storage volume during scale down
- this is so that scale down is not blocked on local storage volume
- for pods where it is okay to ignore local storage volume
Signed-off-by: vadasambar <[email protected]>
fix: tests failing
- there was a problem in the logic
Signed-off-by: vadasambar <[email protected]>
test: add unit test for `IgnoreLocalStorageVolumeKey`
Signed-off-by: vadasambar <[email protected]>
refactor: use `IgnoreLocalStorageVolumeKey` in tests instead of hardcoding the annotation
Signed-off-by: vadasambar <[email protected]>
fix: wording for test name
- `pod with EmptyDir but IgnoreLocalStorageVolumeKey annotation` -> `pod with EmptyDir and IgnoreLocalStorageVolumeKey annotation`
Signed-off-by: vadasambar <[email protected]>
fix: simulator drain tests failing
- set local storage vol name (required)
Signed-off-by: vadasambar <[email protected]>
refactor: add support for multiple vals in `safe-to-evict-local-volume` annotation
- add more unit tests
Signed-off-by: vadasambar <[email protected]>
refactor: rename ignore local vol key `safe-to-evict-local-volume` -> `safe-to-evict-local-volumes`
- abtract code to process annotation into a separate fn
- shorten name for test cases
Signed-off-by: vadasambar <[email protected]>
docs: update FAQ with info about `safe-to-evict-local-volumes` annotation
Signed-off-by: vadasambar <[email protected]>
docs: add the FAQ for `safe-to-evict-local-volumes` annotation
Signed-off-by: vadasambar <[email protected]>
docs: fix formatting for `safe-to-evict-local-volumes` in FAQ
Signed-off-by: vadasambar <[email protected]>
docs: format the `safe-to-evict-local-volumes` as a bullet
Signed-off-by: vadasambar <[email protected]>
docs: fix `Unless` -> `unless` to make it consistent with other lines
Signed-off-by: vadasambar <[email protected]>
test: add an extra test for mismatching local vol value in annotation
Signed-off-by: vadasambar <[email protected]>
docs: make the wording clearer
- for `safe-to-evict-local-volumes` annotation
Signed-off-by: vadasambar <[email protected]>
Copy file name to clipboardExpand all lines: cluster-autoscaler/FAQ.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,12 @@ Cluster Autoscaler decreases the size of the cluster when some nodes are consist
88
88
* are not run on the node by default, *
89
89
* don't have a [pod disruption budget](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#how-disruption-budgets-work) set or their PDB is too restrictive (since CA 0.6).
90
90
* Pods that are not backed by a controller object (so not created by deployment, replica set, job, stateful set etc). *
91
-
* Pods with local storage. *
91
+
* Pods with local storage. *
92
+
- unless the pod has the following annotation set:
0 commit comments