Davanum Srinivas
bf268f02a3
Remove gcp in-tree cloud provider and credential provider
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2024-05-01 09:03:53 -04:00
Kubernetes Prow Robot
1fd835ce59
Merge pull request #123398 from ffromani/remove-legacy-checkpoint
...
node: devicemgr: remove obsolete pre-1.20 checkpoint file support
2024-04-29 14:46:53 -07:00
Kubernetes Prow Robot
3192f7489d
Merge pull request #123796 from saschagrunert/kube-features-remote-runtime
...
Decouple `kubelet/cri/remote` package from `pkg/features`
2024-04-29 05:15:41 -07:00
Kubernetes Prow Robot
da890f071b
Merge pull request #123463 from k82cn/cri_grpc_rs
...
grpc: set localhost Authority to unix client calls
2024-04-29 05:15:32 -07:00
Sascha Grunert
7b14e0e382
Decouple kubelet/cri/remote package from pkg/features
...
Importing the `k8s.io/kubernetes/pkg/features` package in the remote
runtime implementation makes it harder to separate the functionalities
at some later point in time.
We now decouple them by checking if the feature is enabled directly in
the kubelet service creation path.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-04-29 08:37:02 +02:00
Kubernetes Prow Robot
38c2a963b4
Merge pull request #123984 from carlory/volume-remove-cloud-provider
...
Remove cloud provider dependency from volume host and volume controllers
2024-04-28 02:54:14 -07:00
Kubernetes Prow Robot
3d49956fde
Merge pull request #123795 from saschagrunert/metrics-remote-runtime
...
Decouple `kubelet/cri/remote` package from `kubelet/metrics`
2024-04-26 18:31:48 -07:00
Kubernetes Prow Robot
bf454d7c59
Merge pull request #124516 from danwinship/cloud-hostname-override
...
Fix behavior with external cloud provider and --hostname-override
2024-04-25 14:47:24 -07:00
Dan Winship
30972710bd
Fix behavior with external cloud provider and --hostname-override
2024-04-25 08:12:04 -04:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Marek Siarkowicz
3e5b03eb43
Upgrade etcd libraries to v3.5.13
...
Add otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents) to tracing options due to https://github.com/open-telemetry/opentelemetry-go-contrib/pull/3964
2024-04-24 09:56:39 +02:00
Kubernetes Prow Robot
7f68d014e5
Merge pull request #123749 from iholder101/swap_log/only_once_avoid_spam
...
[KEP2400] Avoid logging that swap cgroup controller is missing for every container
2024-04-19 17:00:46 -07:00
Kubernetes Prow Robot
534d7cbc1a
Merge pull request #123905 from aojea/field_selector
...
Field selector for Services based on ClusterIP and Type
2024-04-19 15:30:55 -07:00
Kubernetes Prow Robot
5a71f37805
Merge pull request #124316 from pohly/dra-kubelet-remove-v1alpha2
...
DRA: remove support for v1alpha2 kubelet gRPC API
2024-04-19 14:18:52 -07:00
Kubernetes Prow Robot
3d58fe5a7b
Merge pull request #123970 from carlory/rm-volumelimit-interface
...
remove VolumePluginWithAttachLimits interface
2024-04-19 10:36:11 -07:00
Patrick Ohly
77341f7595
DRA: remove support for v1alpha2 kubelet API
...
The v1alpha2 API is several releases old. No current drivers should still
depend on it.
2024-04-19 18:27:05 +02:00
Kubernetes Prow Robot
bbfd2145de
Merge pull request #124091 from bitoku/dra-nil-check
...
kubelet: add nil check for Node(Un)PrepareResources.
2024-04-18 10:46:05 -07:00
carlory
9ec6ee539a
Remove cloud provider dependency from volume host and volume controllers
2024-04-18 19:00:37 +08:00
Kubernetes Prow Robot
32a3cbc51d
Merge pull request #124245 from wojtek-t/informer_options
...
Allow for configuring MinWatchTimeout in reflector
2024-04-18 03:24:57 -07:00
Kubernetes Prow Robot
9c9a9b7c48
Merge pull request #124242 from carlory/cleanup-after-NewVolumeManagerReconstruction-ga
...
remove unneeded func SyncReconstructedVolume from ActualStateOfWorld
2024-04-18 03:24:50 -07:00
Kubernetes Prow Robot
ca1a134a41
Merge pull request #123977 from wojtek-t/avoid_node_gets
...
Get node from local cache instead of kube-apiserver cache for kubelet status updates
2024-04-18 02:10:44 -07:00
Kubernetes Prow Robot
da6be3b718
Merge pull request #123548 from Songjoy/fix-code
...
Delete a stale code comment
2024-04-18 00:01:10 -07:00
Kubernetes Prow Robot
ef2c682635
Merge pull request #122082 from carlory/remove-keep-terminated-pod-volumes
...
keep-terminated-pod-volumes flag on kubelet is removed
2024-04-17 23:59:54 -07:00
Kubernetes Prow Robot
3fda574e5e
Merge pull request #121770 from frzifus/tracing_kubelet_read-only
...
pass tracerprovider to kublet-readonly server
2024-04-17 23:59:33 -07:00
Kubernetes Prow Robot
528cff12f6
Merge pull request #120969 from skitt/uber-go-mock
...
Switch from golang/mock to uber-go/mock
2024-04-17 23:59:24 -07:00
Francesco Romani
181fb0da51
node: devicemgr: remove obsolete pre-1.20 checkpoint file support
...
In commit 2f426fdba6 we added
compatibility (and tests) to deal with pre-1.20 checkpoint files.
We are now well past the end of support for pre-1.20 kubelets,
so we can get rid of this code.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2024-04-15 14:01:56 +02:00
Antonio Ojea
7d78fb791d
don't watch headless services on kubelet
...
The kubelet watches services only to generate the environment variables
inside a pod, but headless services are not needed for this.
Change-Id: Idb4e893862c55df5e29e13ac92ed288ff573dc0c
2024-04-11 13:09:36 +00:00
Wojciech Tyczyński
36141fa6fb
Bump min watch timeout for secret & configmap manager in Kubelet
2024-04-10 19:36:29 +02:00
Maksym Pavlenko
be4b7176dc
Fix Abs path validation on Windows ( #124084 )
...
* Windows: Consider slash-prefixed paths as absolute
filepath.IsAbs does not consider "/" or "\" as absolute paths, even
though files can be addressed as such. [1][2]
Currently, there are some unit tests that are failing on Windows due to
this reason.
[1] https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#traditional-dos-paths
[2] https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#fully-qualified-vs-relative-paths
* Add test to verify IsAbs for windows
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
* Fix abs path validation on windows
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
* Skipp path clean check for podLogDir on windows
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
* Implement IsPathClean to validate path
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
* Add warn comment for IsAbs
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
---------
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
Co-authored-by: Claudiu Belu <cbelu@cloudbasesolutions.com >
2024-04-10 10:13:59 -07:00
carlory
a6b2619274
remove unneeded func SyncReconstructedVolume from ActualStateOfWorld
2024-04-09 15:34:33 +08:00
Ayato Tokubi
d04f87abde
add nil check for Node(Un)PrepareResources.
...
Signed-off-by: Ayato Tokubi <atokubi@redhat.com >
2024-04-04 23:24:25 +00:00
Fabio Bertinatto
c893c48432
Use the right feature gate when updating uncertain volumes
2024-03-25 16:47:08 -03:00
Wojciech Tyczyński
a36665113e
Get node from local cache instead of kube-apiserver cache
2024-03-18 21:22:00 +01:00
carlory
0c5a7103be
remove VolumePluginWithAttachLimits interface
2024-03-18 18:08:36 +08:00
HirazawaUi
10b6319e64
fix slow dra unit test
2024-03-16 22:21:15 +08:00
Ed Bartosh
26881132bd
kubelet: assign Node as an owner for the ResourceSlice
...
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com >
2024-03-15 09:46:13 +02:00
Kubernetes Prow Robot
d194e6d06c
Merge pull request #123932 from pohly/dra-api-resource-model-rename
...
dra api: NodeResourceModel -> ResourceModel
2024-03-14 12:11:35 -07:00
Patrick Ohly
a0add8d2c7
dra api: NodeResourceModel -> ResourceModel
...
When renaming NodeResourceSlice to ResourceSlice, the embedded
[Node]ResourceModel also should have been renamed.
2024-03-14 18:07:36 +01:00
Akihiro Suda
8963e73f12
kubelet: fix mixing up runtime classes with runtime handlers
...
Fix issue 123906
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-14 08:14:48 +09:00
Akihiro Suda
1dc05009fe
api: NodeStatus: rename RuntimeClasses to RuntimeHandlers
...
The runtime classes are apiserver's concept, while the handlers are kubelet's concept.
For NodeStatus, it makes more sense to return the latter ones here.
This commit modifies the following files:
- pkg/apis/core/types.go
- staging/src/k8s.io/api/core/v1/types.go
- pkg/kubelet/nodestatus/setters.go
- pkg/kubelet/kubelet_node_status.go
- pkg/registry/core/node/strategy.go
- test/e2e_node/mount_rro_linux_test.go
Other changes were auto-generated by running `make update`.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-14 08:06:39 +09:00
Akihiro Suda
4a776f66ec
kubelet: silence "unknown runtime class" errors when unsupported
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-14 07:08:42 +09:00
Antonio Ojea
7ab1ef644e
Revert "Implement a field selector for ClusterIP on Services"
2024-03-12 12:20:27 +00:00
Kevin Klues
fc2134c84c
dra kubelet: fix error log
...
Previously we were returning the error string from 'err' (which is nil), when
we should have been returning it from result.Error. Without this it is hard to
debug issues with NodeUnprepareResources.
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2024-03-11 13:51:29 +00:00
Kubernetes Prow Robot
b3926d137c
Merge pull request #123831 from klueska/fix-unprepare-resources
...
Add StructuredResourceModel to UnprepareResources call
2024-03-11 03:25:14 -07:00
Kevin Klues
13a6dcc21c
dra kubelet: add StructuredResourceModel to UnprepareResources call
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2024-03-09 18:08:14 +00:00
Akihiro Suda
c7f52b34f3
kubelet: KEP-3857: Recursive Read-only (RRO) mounts
...
See <https://kep.k8s.io/3857 >.
An example manifest:
```yaml
apiVersion: v1
kind: Pod
metadata:
name: rro
spec:
volumes:
- name: mnt
hostPath:
# tmpfs is mounted on /mnt/tmpfs
path: /mnt
containers:
- name: busybox
image: busybox
args: ["sleep", "infinity"]
volumeMounts:
# /mnt-rro/tmpfs is not writable
- name: mnt
mountPath: /mnt-rro
readOnly: true
mountPropagation: None
recursiveReadOnly: IfPossible
# /mnt-ro/tmpfs is writable
- name: mnt
mountPath: /mnt-ro
readOnly: true
# /mnt-rw/tmpfs is writable
- name: mnt
mountPath: /mnt-rw
```
Requirements:
- Feature gate "RecursiveReadOnlyMounts" to be enabled
- Linux kernel >= 5.12
- runc >= 1.1
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-10 03:00:59 +09:00
Akihiro Suda
6f12e1d8e5
kubelet: expose containerStatuses.volumeMounts
...
For KEP-3857: Recursive Read-only (RRO) mounts
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-10 03:00:59 +09:00
Akihiro Suda
dd0882a83e
kubelet: expose node.status.runtimeClasses
...
For KEP-3857: Recursive Read-only (RRO) mounts
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-10 03:00:59 +09:00
Akihiro Suda
76081a10c2
kubelet: RuntimeHandler: add SupportsRecursiveReadOnlyMounts
...
For KEP-3857: Recursive Read-only (RRO) mounts
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-09 09:48:09 +09:00
Akihiro Suda
27f24a62e3
kubelet: change map[string]RuntimeHandler to []RuntimeHandler
...
The map is changed to an array so as to retain the order of the original array
propagated from the CRI runtime.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2024-03-09 09:48:07 +09:00