Commit Graph

127283 Commits

Author SHA1 Message Date
ndixita
777221421a Resource Quota enforcement changes for Pod Level Resources 2024-11-08 03:00:55 +00:00
ndixita
28dea49c04 Limit Range changes to validate against Pod Level Resources 2024-11-08 03:00:54 +00:00
ndixita
99a6153a4f e2e tests
Signed-off-by: ndixita <ndixita@google.com>
2024-11-08 03:00:54 +00:00
ndixita
5a64597d2e Adding OOM Score adjustment formula changes that takes pod level resources into account
Signed-off-by: ndixita <ndixita@google.com>
2024-11-08 03:00:54 +00:00
ndixita
5ea57fb3b4 cgroup configuration changes:
1. Pod cgrooup configured to use resources from pod spec if feature is enabled and resources are set at pod-level
2. Container cgroup limits defaulted to pod-level limits is container limits are not set
2024-11-08 03:00:54 +00:00
ndixita
26f11c4586 QOS changes for Pod Level resources 2024-11-08 03:00:54 +00:00
ndixita
6db40446de Scheduler changes:
1. Use pod-level resource when feature is enabled and resources are set at pod-level
2. Edge case handling: When a pod defines only CPU or memory limits at pod-level (but not both), and container-level requests/limits are unset, the pod-level requests stay empty for the resource without a pod-limit. The container's request for that resource is then set to the default request value from schedutil.
2024-11-08 03:00:54 +00:00
ndixita
8a8dc27b4e Adding the logic to validate pod-level resources as following:
1. The effective container requests cannot be greater than pod-level requests
2. Inidividual container limits cannot be greater than pod-level limits
3. Only CPU & Memory are supported at pod-level
4. Inplace container resources updates are not supported if pod-level resources are set
Note: effective container requests cannot be greater than pod-level limits is supported by transitivity. Effective container requests <= pod-level requests && pod-level requests <= pod-level limits; Therefore effective container requests <= pod-level limits

Signed-off-by: ndixita <ndixita@google.com>
2024-11-08 03:00:54 +00:00
ndixita
a2ddde877c Adding the logic to set default pod-level request as following:
1. If pod-level limit is set, pod-level request is unset and container-level request is set: derive pod-level request from container-level requests
2. If pod-level limit is set, pod-level request is unset and container-level request is unset: set pod-level request equal to pod-level limit
2024-11-08 03:00:54 +00:00
ndixita
502e0f55c4 Adding support for pod level resources in kubectl
1. Add support for pod level resources in kubectl
2. Reuse the existing method to describe container resources and generalize it to describe both pod and container level resources
2024-11-08 03:00:53 +00:00
ndixita
85488b5f10 Generated files and compatability data from API changes 2024-11-08 03:00:50 +00:00
ndixita
d7f488b5e3 API changes for Pod Level Resources
1. Add Resources struct to PodSpec struct in both external and internal API packages
2. Adding feature gate and logic for dropping disabled fields for Pod Level Resources
KEP: enhancements/keps/sig-node/2837-pod-level-resource-spec
2024-11-08 02:45:04 +00:00
Bo Wang
495af2a3d4
Add missing comments in k8s.io/api/core/v1
Signed-off-by: Bo Wang <wangbob@uniontech.com>
2024-11-07 18:42:33 -08:00
Jefftree
e86c38b249 generated 2024-11-08 02:27:20 +00:00
Jefftree
0ce7b688a6 v1alpha2 LeaseCandidate API 2024-11-08 02:27:19 +00:00
Kubernetes Prow Robot
210f129bb0
Merge pull request #128676 from vivzbansal/sidecar-3
Refactor: Move IsRestartableInitContainer to common utility package
2024-11-08 02:21:50 +00:00
Kubernetes Prow Robot
e1e92bc403
Merge pull request #128618 from knrc/error-check-fix
Fix error check
2024-11-08 02:21:42 +00:00
Kubernetes Prow Robot
b35bbecbc5
Merge pull request #128506 from kolyshkin/cgroups-nit
kubelet/kuberuntime: switch to runc/libct
2024-11-08 02:21:34 +00:00
Kubernetes Prow Robot
4cf2818f96
Merge pull request #128240 from LionelJouin/KEP-4817
DRA: Implementation of ResourceClaim.Status.Devices (KEP-4817)
2024-11-08 02:21:24 +00:00
Kubernetes Prow Robot
46b3d9b320
Merge pull request #128186 from sreeram-venkitesh/117767-in-place-pod-vertical-scaling-version-skew
Updated version skew strategy for InPlacePodVerticalScaling
2024-11-08 02:21:14 +00:00
Kubernetes Prow Robot
4d10ae8fdc
Merge pull request #127513 from tkashem/delete-undecryptable
KEP-3926: unsafe deletion of corrupt objects
2024-11-08 02:21:04 +00:00
Kubernetes Prow Robot
30052523d7
Merge pull request #127300 from hshiina/error-propagation
[FG:InPlacePodVerticalScaling] kubelet: Propagate error in doPodResizeAction() to the caller
2024-11-08 02:20:57 +00:00
Kubernetes Prow Robot
9f877195e2
Merge pull request #127275 from bouaouda-achraf/fix-quota-inplace-resize-delay
[FG:InPlacePodVerticalScaling] bug(quota): handle resources changed on resource quota filter
2024-11-08 02:20:50 +00:00
Kubernetes Prow Robot
a2a32fc31a
Merge pull request #121968 from Peac36/fix/121414
add warnings for cases one of projected volume types get overwritten by service account token
2024-11-08 02:20:43 +00:00
Richa Banker
da8dc433e9 Add flagz implementation and enablement in apiserver 2024-11-07 17:11:49 -08:00
Kubernetes Prow Robot
60651eb172
Merge pull request #125577 from richabanker/statusz
Add statusz endpoint for apiserver
2024-11-08 01:04:43 +00:00
Tim Allclair
bab6df857c Add resize e2e tests around min CPU shares 2024-11-07 17:02:25 -08:00
Tim Allclair
5a3a40cd19 Handle resize edge cases around min CPU shares 2024-11-07 17:02:25 -08:00
Tim Allclair
8661f743a3 Fix AllocatedResources feature gate annotation 2024-11-07 16:31:25 -08:00
Kubernetes Prow Robot
210deea063
Merge pull request #128681 from soltysh/client-go_port_forward_reset
Client go port forward reset, error handling and tests
2024-11-07 23:33:03 +00:00
Kubernetes Prow Robot
b09acdfc72
Merge pull request #128674 from richabanker/master
Fix OIDC flags
2024-11-07 23:32:56 +00:00
Mark Rossetti
3c9380c449
Memory manager support for Windows nodes (#128560) 2024-11-07 23:32:49 +00:00
Kubernetes Prow Robot
8504758a2e
Merge pull request #125757 from Nordix/esotsal/125205
[FG:InPlacePodVerticalScaling] Fix backoff problem when quickly reverting resize patch
2024-11-07 23:32:42 +00:00
Achraf BOUAOUDA
3fa38a28e4 bug(quota): handle ResourcesChanged on resource quota filter 2024-11-07 23:51:38 +01:00
Abu Kashem
25efc8f2d1 handle watch for unsafe delete 2024-11-07 17:37:59 -05:00
Abu Kashem
9932dbef57 add access control check for unsafe delete
add access control check to ensure that the user has permission to do
'unsafe-delete-ignore-read-error' on the resource being deleted
2024-11-07 17:37:59 -05:00
Abu Kashem
367a265c0e add an integration test that exercises the unsafe delete flow
- add an integration test that exercises the unsafe delete flow
- extend newTransformTest to enable RBAC
- add integration test to verify that LIST returns corrupt object keys
2024-11-07 17:37:59 -05:00
Abu Kashem
5d4b4a160d implement unsafe deletion, and wire it
- implement unsafe deletion, and wire it
- aggregate corrupt object error(s) from the storage LIST operation
- extend storage error:
a) add a new type ErrCodeCorruptObj to represent a corrupt object:
b) add a new member 'InnerErr error' to StorageError to hold
   the inner error
- add API status error
2024-11-07 17:37:59 -05:00
Abu Kashem
aff05b0bca api: run codegen
run 'make update' to code gen for changes in meta/v1 DeleteOptions
2024-11-07 17:37:55 -05:00
Kubernetes Prow Robot
b7113809cb
Merge pull request #128670 from liggitt/externaljwt-broadcast
Move broadcast of key updates into sync, fixup of externaljwt generation / test
2024-11-07 22:20:58 +00:00
Kubernetes Prow Robot
ab30adcbae
Merge pull request #128356 from lauralorenz/crashloopbackoff-maintain10minuterecoverythreshold
KEP-4603: Maintain current 10 minute recovery threshold for container backoff regardless of changes to the maximum duration
2024-11-07 22:20:50 +00:00
Kubernetes Prow Robot
3300aa1783
Merge pull request #128247 from mattcary/autodelete-ga
Promote StatefulSetAutoDeletePVC to stable in 1.32
2024-11-07 22:20:43 +00:00
vivzbansal
cf8ee421f1 Updated the comment of IsRestartableInitContainer(...) 2024-11-07 22:14:22 +00:00
vivzbansal
0548756f06 Fix duplicate import error 2024-11-07 21:23:18 +00:00
vivzbansal
763e810fb5 refactor code to add sidecar container support in IPPR 2024-11-07 21:20:48 +00:00
Lionel Jouin
d84c8d2a64 [KEP-4817] make update 2024-11-07 22:19:09 +01:00
Lionel Jouin
118356175d [KEP-4817] Add limits on conditions and IPs + fix documentation
Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
2024-11-07 22:18:53 +01:00
Kir Kolyshkin
19477b7eed kubelet/kuberuntime: use sync.OnceValue
This was added to Go 1.21, and makes the code simpler.

(Best reviewed ignoring changes in amount of whitespace).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-07 13:11:49 -08:00
Kubernetes Prow Robot
6e25c2a456
Merge pull request #128668 from liggitt/externaljwt
Update staging docs to add externaljwt
2024-11-07 21:07:17 +00:00
Kubernetes Prow Robot
601feb8ccb
Merge pull request #128661 from sanposhiho/split-test
fix: move the queueing integration tests to another package to address the timeout issue
2024-11-07 21:07:09 +00:00