Skip to content

Commit 88dec29

Browse files
committed
Add note about forbidding swap resizes
1 parent 2091f02 commit 88dec29

File tree

1 file changed

+10
-0
lines changed
  • keps/sig-node/1287-in-place-update-pod-resources

1 file changed

+10
-0
lines changed

keps/sig-node/1287-in-place-update-pod-resources/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,15 @@ future, but the design of how limit decreases will be approached is still undeci
820820

821821
Memory limit decreases with `RestartRequired` are still allowed.
822822

823+
### Swap
824+
825+
Currently (v1.33), if swap is enabled & configured, burstable pods are allocated swap based on their
826+
memory requests. Since resizing swap requires more thought and additional design, we will forbid
827+
resizing memory requests of such containers for now. Since the API server is not privy to the node's
828+
swap configuration, this will be surfaced as resizes being marked `Infeasible`.
829+
830+
We try to relax this restriction in the future.
831+
823832
### Sidecars
824833

825834
Sidecars, a.k.a. restartable InitContainers can be resized the same as regular containers. There are
@@ -901,6 +910,7 @@ This will be reconsidered post-beta as a future enhancement.
901910
1. Handle pod-scoped resources (https://github.com/kubernetes/enhancements/pull/1592)
902911
1. Explore periodic resyncing of resources. That is, periodically issue resize requests to the
903912
runtime even if the allocated resources haven't changed.
913+
1. Allow resizing containers with swap allocated.
904914

905915
#### Mutable QOS Class "Shape"
906916

0 commit comments

Comments
 (0)