Daniel Ye
dcc7c2f660
Add fake runtimes and CRI changes for KEP-2371
...
Added new gRPC call 'ListPodSanboxMetrics' which would return additional
container stats currently supported by cAdvisor, but outside the scope
of /stats/summary api. Added new types to support metric exporting of
prometheus, including Metric and other subfields. Added fake runtime
changes associated with the CRI changes.
2022-11-08 14:47:08 -05:00
Harshal Patil
86284d42f8
Add support for Evented PLEG
...
Signed-off-by: Harshal Patil <harpatil@redhat.com >
Co-authored-by: Swarup Ghosh <swghosh@redhat.com >
2022-11-08 20:06:16 +05:30
David Ashpole
64af1adace
Second attempt: Plumb context to Kubelet CRI calls ( #113591 )
...
* plumb context from CRI calls through kubelet
* clean up extra timeouts
* try fixing incorrectly cancelled context
2022-11-05 06:02:13 -07:00
Sascha Grunert
f9707064cf
Remove CRI v1alpha2
...
After the removal of dockershim we can finally also drop support for CRI
v1alpha2.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2022-11-03 09:13:43 +01:00
Antonio Ojea
9c2b333925
Revert "plumb context from CRI calls through kubelet"
...
This reverts commit f43b4f1b95
.
2022-11-02 13:37:23 +00:00
David Ashpole
f43b4f1b95
plumb context from CRI calls through kubelet
2022-10-28 02:55:28 +00:00
Kubernetes Prow Robot
98233be715
Merge pull request #112709 from swagatbora90/kubelet-tracing
...
Support otel tracing in cri remote image service
2022-10-04 14:12:00 -07:00
Swagat Bora
caa83c25ae
Support otel tracing in cri remote image service
...
Signed-off-by: Swagat Bora <sbora@amazon.com >
2022-09-29 22:15:07 +00:00
astraw99
805be30745
Add validation for runtime endpoint
2022-09-28 10:33:35 +08:00
Vinay Kulkarni
007d93ad08
Handle UpdateContainerResources for Windows in v1alpha2
2022-08-02 15:31:00 -07:00
Vinay Kulkarni
0ef263c3b0
CRI changes to support implementation of in-place pod resize.
...
KEP: /enhancements/keps/sig-node/1287-in-place-update-pod-resources
2022-08-02 15:08:25 -07:00
Kubernetes Prow Robot
8f3b2813dc
Merge pull request #111642 from harche/evented_pleg_cri_changes
...
Update CRI API to support Evented PLEG
2022-08-02 13:59:16 -07:00
Harshal Patil
668b2440c5
Update CRI API to support Evented PLEG
...
Signed-off-by: Harshal Patil <harpatil@redhat.com >
2022-08-03 00:01:13 +05:30
Sally O'Malley
9e4e0bb48a
add runtime-service test with tracerProvider
...
Signed-off-by: Sally O'Malley <somalley@redhat.com >
2022-08-01 12:55:21 -04:00
Sally O'Malley
47e7d8034f
kubelet tracing
...
Signed-off-by: Sally O'Malley <somalley@redhat.com >
Co-authored-by: David Ashpole <dashpole@google.com >
2022-08-01 12:55:02 -04:00
Kubernetes Prow Robot
631a5a849a
Merge pull request #109778 from mythi/grpc-go-update
...
grpc: move to use grpc.WithTransportCredentials()
2022-07-26 12:45:09 -07:00
Adrian Reber
fc37a7a990
kubelet: wire checkpoint container support through
...
This adds the last pieces to wire through the container checkpoint
support in the kubelet.
Signed-off-by: Adrian Reber <areber@redhat.com >
2022-07-14 10:27:41 +00:00
Adrian Reber
1ac7d78296
kubelet: add CheckpointContainer in remote runtime
...
This is the first step to implement checkpointing and restoring of
container and containers starting from the lowest layer in the kubelet.
Signed-off-by: Adrian Reber <areber@redhat.com >
2022-07-14 10:27:40 +00:00
Claudiu Belu
93701ce0c1
cleanup: Removes duplicate utils code
...
The utils found in pkg/kubelet/cri/remote/utils are the same as the
ones in pkg/kubelet/utils, with the difference that the latter have
had a few improvements recently.
This commit removes the duplicated code.
2022-06-28 22:58:14 -07:00
21kyu
df168d5b5c
Change reflect.Ptr to reflect.Pointer
2022-06-26 01:23:43 +09:00
Mikko Ylinen
2c8bfad910
grpc: move to use grpc.WithTransportCredentials()
...
v1.43.0 marked grpc.WithInsecure() deprecated so this commit moves to use
what is the recommended replacement:
grpc.WithTransportCredentials(insecure.NewCredentials())
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com >
2022-05-30 21:41:47 +03:00
Kubernetes Prow Robot
4bec6b34ef
Merge pull request #107122 from songlh/fixing-5
...
fixing the panic in TestVersion
2022-05-05 16:28:41 -07:00
Sascha Grunert
effbcd3a0a
Add support for CRI verbose
fields
...
The remote runtime implementation now supports the `verbose` fields,
which are required for consumers like cri-tools to enable multi CRI
version support.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2022-02-10 17:12:26 +01:00
Jordan Liggitt
3a132bd206
Fix kubelet cri round trip test
2022-02-05 17:59:29 -05:00
yanghesong
4cab028a92
Remove dockershim comments in kubelet
...
Signed-off-by: yanghesong <hesong.yang@foxmail.com >
2022-01-20 16:15:29 +08:00
songlh
50840f5039
change to use require.NoError
2022-01-14 21:46:12 -05:00
songlh
e03a0bc105
fixing the panic in TestVersion
2021-12-18 19:20:15 -05:00
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2021-12-09 21:31:26 -05:00
Sascha Grunert
a063a2ba3e
Revert dockershim CRI v1 changes
...
We should not touch the dockershim ahead of removal and therefore
default to `v1alpha2` CRI instead of `v1`.
Partially reverts changes from https://github.com/kubernetes/kubernetes/pull/106501
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2021-12-03 18:37:11 +01:00
Elana Hashman
31c4273f66
Add test for memory equivalence
...
See https://github.com/kubernetes/kubernetes/pull/106006#issuecomment-971004230
Co-Authored-By: Jordan Liggitt <liggitt@google.com >
2021-11-17 11:07:09 -08:00
Sascha Grunert
de37b9d293
Make CRI v1
the default and allow a fallback to v1alpha2
...
This patch makes the CRI `v1` API the new project-wide default version.
To allow backwards compatibility, a fallback to `v1alpha2` has been added
as well. This fallback can either used by automatically determined by
the kubelet.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2021-11-17 11:05:05 -08:00
Stephen Augustus
481cf6fbe7
generated: Run hack/update-gofmt.sh
...
Signed-off-by: Stephen Augustus <foo@auggie.dev >
2021-08-24 15:47:49 -04:00
Peter Hunt
a9b7dcc8c2
kubelet: update remote runtimes for cri stat changes
...
Signed-off-by: Peter Hunt <pehunt@redhat.com >
2021-07-08 13:17:04 -04:00
Kubernetes Prow Robot
4a3e1b90c7
Merge pull request #100175 from changshuchao/testcase_utils
...
test case for pkg/kubelet/cri/remote/utils.go
2021-04-08 20:28:22 -07:00
changshuchao
fa6654ff19
test case for pkg/kubelet/cri/remote/utils_test.go
2021-03-12 23:47:24 +08:00
afrouz
8f2e927b4a
Migrate cmd/kubelet, image, cadvisor and cri to structured logging
2021-03-09 23:12:10 +03:30
Kubernetes Prow Robot
da2f6385e9
Merge pull request #98589 from chenyw1990/structuredLogsOfRemote
...
pkg/kubelet/cri/remote: migrate to structured logs
2021-03-02 15:49:19 -08:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
chenyw1990
8d86470417
pkg/kubelet/cri/remote: migrate to structured logs
2021-02-22 11:44:58 +08:00
Sergey Kanzhelev
4c9e96c238
Revert "Merge pull request #92817 from kmala/kubelet"
...
This reverts commit 88512be213
, reversing
changes made to c3b888f647
.
2021-01-12 22:27:22 +00:00
jornshen
c38637a08b
[flaky test] fix race in TestVersion in pkg/kubelet/cri/remote
2020-12-03 14:26:11 +08:00
Andrew Sy Kim
4bb30c3b0e
kubelet: add feature gate check for exec probe timeouts
...
This change also involves adding a custom error type for probe timeouts
so that the kubelet exec prober can distinguish between failed probes
that have exited or probes that have timed out.
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com >
2020-11-09 13:05:09 -05:00
Andrew Sy Kim
2887e707f8
kubelet: respect probe exec timeout from CRI by returning utilexec.CodeExitError
...
This fixes a bug where the exec timeouts are not respected with
containerd
Exec prober expects a utilexec.CodeExitError on failed probes, otherwise
the prober returns 'Unknown' and a non-nil error which the kubelet throws
away. As a temporary fix, ExecSync as part of the CRI remote runtime
should return utilexec.CodeExitError when the grpc error code is
DeadlineContextExceeded. This ensure the exec prober registers exec
timeouts as real probe failures to the kubelet. We should also add a
TimededError type to k8s.io/utils/exec since it doesn't really make
sense to use CodeExitError for exec time outs.
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com >
2020-11-09 13:03:28 -05:00
Yixiang2019
62710bc034
cleanup: fix some error log capitalization
...
Signed-off-by: Yixiang2019 <wang.yixiang@zte.com.cn >
2020-10-28 16:44:54 +08:00
Kubernetes Prow Robot
88512be213
Merge pull request #92817 from kmala/kubelet
...
Check for sandboxes before deleting the pod from apiserver
2020-09-10 07:27:45 -07:00
Sergey Kanzhelev
df2f67daf8
fix linter issues for pkg/kubelet/cri/remote and staging/src/k8s.io/cri-api/pkg/apis/testing
2020-08-28 04:15:39 +00:00
Keerthan Reddy,Mala
d4325f42fb
Check for sandboxes before deleting the pod from apiserver
2020-07-22 11:54:56 -07:00
Ali Farah
81b91563e4
Fix typo in util_linux.go
2020-06-17 02:04:15 +10:00
Jordan Liggitt
591e0043c8
Revert "Merge pull request 89667 from kmala/kubelet"
...
This reverts commit fa785a5706
, reversing
changes made to cf13f8d994
.
2020-05-21 13:30:14 -04:00
Davanum Srinivas
c7e79d2048
fix import restrictions and BUILD
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-05-20 10:57:47 -04:00