Kubernetes Prow Robot
74f6c263d8
Merge pull request #118544 from sohankunkerkar/remove-sandbox-image-ref
...
pkg/kubelet: allow sandbox image pinning from CRI
2023-09-11 11:52:12 -07:00
Kubernetes Prow Robot
49768134e5
Merge pull request #119754 from pbxqdown/kubelet-fix-typo
...
Fix some typos in kubelet component source code
2023-09-09 19:36:11 -07:00
Kubernetes Prow Robot
58ce734223
Merge pull request #120255 from likakuli/feat-addreferenceonlyfirsttime
...
feat: minimize unnecessary API requests to the API server for the configmap/secret get API
2023-09-07 06:42:57 -07:00
Kubernetes Prow Robot
b27670dfbd
Merge pull request #118740 from saschagrunert/kubelet-label-types
...
Make kubelet label types public
2023-09-06 23:46:57 -07:00
Gunju Kim
696f84aeb0
Feature-gate SidecarContainers code in pkg/kubelet/kuberuntime
2023-09-01 00:13:47 +09:00
likakuli
e167ecbb9e
fix: only invoke AddReference first time when to sync same pod to minimize unnecessary API requests to the API server for the configmap/secret get API
...
Signed-off-by: likakuli <1154584512@qq.com >
2023-08-31 22:56:49 +08:00
Sohan Kunkerkar
d5690f12b6
pkg/kubelet: allow sandbox image pinning from CRI
...
As part of this change, the code responsible for managing the sandbox
image within the kubelet has been removed. Previously, the kubelet used
to prevent sandbox image from the garbage collection process. However,
with this update, the responsibility of managing the sandbox containers
has been shifted to the CRI implementation itself. By allowing sandbox
image pinning from CRI, we improve efficiency and simplify the kubelet's
interaction with the container runtime. As a result, the kubelet can now
rely on the container runtime's built-in mechanisms for sandbox container
lifecycle management.
Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com >
2023-08-29 15:34:51 -04:00
Patrick Ohly
2472291790
api: introduce separate VolumeResourceRequirements struct
...
PVC and containers shared the same ResourceRequirements struct to define their
API. When resource claims were added, that struct got extended, which
accidentally also changed the PVC API. To avoid such a mistake from happening
again, PVC now uses its own VolumeResourceRequirements struct.
The `Claims` field gets removed because risk of breaking someone is low:
theoretically, YAML files which have a claims field for volumes now
get rejected when validating against the OpenAPI. Such files
have never made sense and should be fixed.
Code that uses the struct definitions needs to be updated.
2023-08-21 15:31:28 +02:00
Kubernetes Prow Robot
addc0391e7
Merge pull request #116897 from Richabanker/kubelete-resource-metrics-ga
...
Graduate kubelet resource metrics to GA
2023-08-18 16:03:37 -07:00
Richa Banker
4712025ea8
Graduate kubelet resource metrics to GA
2023-08-17 09:22:48 -07:00
ruiwen-zhao
5bbc4f7605
Pass Pinned field to kubecontainer.Image
...
Signed-off-by: ruiwen-zhao <ruiwen@google.com >
2023-08-17 00:32:59 +00:00
git-jxj
a5b3a4b738
cleanup: Update deprecated FromInt to FromInt32 ( #119858 )
...
* redo commit
* apply suggestions from liggitt
* update Parse function based on suggestions
2023-08-16 09:33:01 -07:00
Kubernetes Prow Robot
19deb04a90
Merge pull request #118619 from TommyStarK/gh_113832
...
dynamic resource allocation: reuse gRPC connection
2023-08-16 09:32:27 -07:00
Kubernetes Prow Robot
419df231bc
Merge pull request #119709 from charles-chenzz/fix_flaky
...
fix flaky test on dra TestPrepareResources/should_timeout
2023-08-16 06:16:26 -07:00
Antonio Ojea
f355b22f5f
implement Stringer for podActions
...
klog prints an internal error when trying to log the podActions struct.
> I0505 14:12:12.827065 190662 kuberuntime_manager.go:1014] "computePodActions got for pod" podActions="<internal error: json: unsupported type: map[container.ContainerID]kuberuntime.containerToKillInfo>" pod="kube-system/coredns-8f5847b64-mzw46"
Implement the stringer interface on the struct to avoid the json error.
Change-Id: I22444524a78a0ecec9490b9240def371a4129434
2023-08-07 22:48:28 +00:00
Qian Xiao
0944c00778
Fix some typo in kubelet component source code
2023-08-03 23:56:50 -07:00
charles-chenzz
ba9ce3ab08
fix flaky test on dra TestPrepareResources/should_timeout
...
Co-authored-by: TommyStarK <thomasmilox@gmail.com >
2023-08-03 22:37:54 +08:00
Kubernetes Prow Robot
d4fde1e92a
Merge pull request #118549 from a7i/kubelet-prober-metric-pod
...
fix 'pod' in kubelet prober metrics
2023-07-26 18:28:06 -07:00
Paco Xu
c4bf42199a
do not touch swap for cgroup v1 if swap not enabled
2023-07-21 13:27:50 +08:00
TommyStarK
60a8bca507
dynamic resource allocation: add unit test to check the reuse of the gRPC connection
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2023-07-20 19:22:25 +02:00
TommyStarK
7ffd3063ce
dynamic resource allocation: reuse gRPC connection
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2023-07-19 10:12:52 +02:00
Kevin Klues
0449cef8fd
Increase timeout for DRA kubelet plugin client
...
The 10 second timeout was too low. Given that the retry loop for the
kubelet itself is 90s, increasing the timeout to half of this seems
reasonable. Ideally we would pull in the variable that sets the retry
timeout to 90s and then just set our local timeout to half of that.
Unfortunately, this is not exported, so we settle (for now with just
explicitly setting it to 45s.
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2023-07-18 22:45:01 +01:00
Kubernetes Prow Robot
238165450a
Merge pull request #119307 from bart0sh/PR121-DRA-UnprepareResources-Dont-Query-claim
...
DRA: don't query claims from API server
2023-07-18 11:07:21 -07:00
Kubernetes Prow Robot
6b0e66abad
Merge pull request #116968 from mansikulkarni96/windowsStatsFromCRI
...
kubelet: Implement support for Windows podAndContainerStatsFromCRI
2023-07-18 11:07:10 -07:00
Ed Bartosh
0ec99fb0b2
Kubelet DRA: fix failing test cases
2023-07-18 19:06:33 +03:00
Ed Bartosh
f6431c6138
DRA: don't query claims from API server
...
When a pod is force-deleted UnprepareResources fails to get a claim
from an API server.
PrepareResources should cache claim info required by the
UnprepareResources so that UnprepareResources would get it from
the cache instead of querying API server.
2023-07-18 18:23:10 +03:00
Kubernetes Prow Robot
6d83e22ba4
Merge pull request #118711 from TommyStarK/tom/gh_118436
...
add unit test for dra/manager.go
2023-07-18 04:17:09 -07:00
charles-chenzz
0372e4b662
add unit test for dra/manager.go.
...
Co-Authored-By: charles-chenzz <Rekles666@gmail.com >
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2023-07-18 12:14:27 +02:00
Kubernetes Prow Robot
b4d793c450
Merge pull request #118865 from iholder101/kubelet/add-swap-to-summary-stats
...
Add swap to stats to Summary API and Prometheus endpoints (`/stats/summary` and `/metrics/resource`)
2023-07-17 19:49:18 -07:00
Kubernetes Prow Robot
da2fdf8cc3
Merge pull request #118764 from iholder101/Swap/burstableQoS-impl
...
Add full cgroup v2 swap support with automatically calculated swap limit for LimitedSwap and Burstable QoS Pods
2023-07-17 19:49:07 -07:00
Kubernetes Prow Robot
d17f3ba2cf
Merge pull request #119168 from gjkim42/sidecar-allow-probes-and-lifecycle-hooks
...
Allow all probes and lifecycle for restartable init containers
2023-07-17 18:11:07 -07:00
Itamar Holder
e429793db1
Unit tests: node swap usage resource metric
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:55:56 +03:00
Itamar Holder
1d368420b2
Add a node swap usage resource metric (/metrics/resource)
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:55:56 +03:00
Itamar Holder
7d187f967b
Unit tests: CRI swap stats
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:55:56 +03:00
Itamar Holder
59e3e3897e
Add SwapStats to summary API through CRI
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:55:56 +03:00
Itamar Holder
87ff9c4525
Add swap statistics to CRI-API
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:55:53 +03:00
Itamar Holder
053d7ac61f
Unit tests: cadvisor swap stats
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:40:02 +03:00
Itamar Holder
c74ee8045d
Add SwapStats to summary API through cadvisor
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:40:02 +03:00
Gunju Kim
9d6c1030db
Generate containers ready condition including restartable init containers
2023-07-18 08:12:24 +09:00
Gunju Kim
3bf282652f
Allow restartable init containers to have lifecycle
2023-07-18 08:12:24 +09:00
Gunju Kim
7ef2d674e2
Allow restartable init containers to have livenessProbe
2023-07-18 07:54:33 +09:00
Gunju Kim
2c8b37498e
Allow restartable init containers to have readinessProbe
2023-07-18 07:54:33 +09:00
Kubernetes Prow Robot
ff90c1cc73
Merge pull request #119374 from danwinship/kep-3178-ga
...
move KEP-3178 IPTablesOwnershipCleanup to GA
2023-07-17 15:53:47 -07:00
Kubernetes Prow Robot
1fef8fd51d
Merge pull request #118770 from marquiz/devel/cgroup-driver-autoconfig
...
kubelet: get cgroup driver config from CRI
2023-07-17 15:53:18 -07:00
Kubernetes Prow Robot
a776bf0462
Merge pull request #116335 from gnufied/update-api-recovery-apis
...
Update api recovery apis
2023-07-17 14:52:35 -07:00
Dan Winship
f1e7386fbc
Deprecate now-unused kubelet iptables flags
2023-07-17 16:51:47 -04:00
Dan Winship
d486736dd3
Remove IPTablesOwnershipCleanup checks and dead code
2023-07-17 16:51:47 -04:00
Kubernetes Prow Robot
92856db662
Merge pull request #118973 from ffromani/kubelet-podresources-getallocatable-ga
...
node: podresources: getallocatable: move to GA
2023-07-17 13:47:33 -07:00
Kubernetes Prow Robot
42141aaf93
Merge pull request #118578 from bart0sh/PR117-DRA-log-manager-errors
...
DRA: report NodePrepareResource errors
2023-07-17 13:47:13 -07:00
Hemant Kumar
e011187114
Update code to use new generic allocatedResourceStatus field
2023-07-17 15:30:35 -04:00