Commit Graph

12754 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e0859f91b7 Merge pull request #131887 from ania-borowiec/extract_cyclestate_interface
Moving Scheduler interfaces to staging: split CycleState into interface and implementation, move interface to staging repo
2025-05-30 04:00:18 -07:00
Ania Borowiec
d75af825fb Extract interface CycleState and move is to staging repo. CycleState implementation remains in k/k/pkg/scheduler/framework 2025-05-29 16:18:36 +00:00
Kubernetes Prow Robot
cd3b5c5766 Merge pull request #131658 from dims/allow-specifying-a-directory-for-image-credential-providers-json-configuration
Allow specifying a directory for image credential providers json configuration
2025-05-29 07:46:20 -07:00
Davanum Srinivas
be6807e6a5 Allow specifying a directory for image credential providers json/yaml configuration
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-29 09:42:26 -04:00
Kubernetes Prow Robot
2f94274c88 Merge pull request #131562 from logica0419/kube-proxy-string-concat
Add missing space in string concatenation (kube-proxy)
2025-05-27 13:36:22 -07:00
joshjms
b461d80f3d etcd: update etcd image to v3.6.0
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-05-26 15:06:50 +08:00
Kubernetes Prow Robot
7f74d2b407 Merge pull request #131842 from michaelasp/compatmetrics
Add metrics for compatibility version
2025-05-23 15:58:35 -07:00
Lubomir I. Ivanov
c5f368522d kubeadm: fix dryrun-latest e2e by updating cluster-info fixture
Recently in PR 131741 the kubeadm fixture for cluster-info
in dryrun.go was updated to remove the 'preferences' struct.

This means that the hardcoded JWS signature of the cluster-info
fixture must also be updated.

Update the signature to the expected one to fix e2e
failures in dryrun-latest.

https://testgrid.k8s.io/sig-cluster-lifecycle-kubeadm#kubeadm-kinder-dryrun-latest
2025-05-21 12:09:40 +03:00
Kubernetes Prow Robot
707efc4e51 Merge pull request #131677 from lalitc375/master
[Kubeadm]: Add support for ECDSA-P384 encryption algorithm
2025-05-20 18:24:35 -07:00
Davanum Srinivas
c509e22d11 Add a list of modules that should be pinned at current versions
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-20 18:05:57 -04:00
Lalit Chauhan
637d234aae feat: Add support for ECDSA-P384 encryption algorithm
This commit introduces support for using ECDSA P-384 as an encryption
algorithm for generating certificates and keys within kubeadm.

The following changes are included:
- Defined the `EncryptionAlgorithmECDSAP384` constant in the kubeadm API types.
- Updated API documentation to reflect the new algorithm option ("ECDSA-P384").
- Added validation for `ECDSA-P384` in the cluster configuration.
- Implemented key generation logic for ECDSA P-384 keys in `pkiutil`
  (using `elliptic.P384()`).
- Added corresponding unit tests to verify the new algorithm's functionality
  in `pkiutil`.

This allows users to choose ECDSA P-384 for
kubeadm-managed clusters.
2025-05-20 17:08:56 +00:00
Maciej Szulik
8cf5e8db78 Deprecate kubeconfig's preference field in favor of kuberc
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-05-20 13:31:57 +02:00
Michael Aspinwall
a8ed33bc64 feat: add metrics for compatibility version
Add metrics for compatibility version for kube-apiserver, kube-scheduler, and kube-controller-manager.

Signed-off-by: Michael Aspinwall <maspinwall@google.com>
2025-05-20 08:41:01 +00:00
Brendan Shephard
be5d8c767b Update cmd/kubeadm/app/cmd/upgrade/apply.go
Co-authored-by: Bing Hongtao <695097494plus@gmail.com>
2025-05-18 18:38:16 +10:00
Brendan Shephard
c0885e018a Fix --config option from suggested kubeadm command
This change fixes the --config option in the recommended kubeadm command
that is returned to users.

Fixes: https://github.com/kubernetes/kubeadm/issues/3201
Signed-off-by: Brendan Shephard <bshephar@bne-home.net>
2025-05-18 18:36:45 +10:00
Kubernetes Prow Robot
2125fd6a94 Merge pull request #130161 from carlory/kep-2395-kubelet-cleanup
kubelet: clean up cloud provider code because cloud provider only supports empty or external and cloud is nil
2025-05-17 13:05:13 -07:00
Jordan Liggitt
079d4e52c2 Fix kubeadm etcd client interface 2025-05-15 21:19:18 -04:00
Antonio Ojea
cf8acf5cb7 package bootstrap matches dir
Change-Id: I56104a0a16e6bd1d7b12097f5eda417dd8ad6247
2025-05-15 11:43:59 +00:00
Kubernetes Prow Robot
c96032addd Merge pull request #131318 from aojea/lock_servicecidr
Lock MultiCIDRServiceAllocator to default and DisableAllocatorDualWrite to GA
2025-05-13 09:51:28 -07:00
SataQiu
ea6b4ea7e9 kubeadm: bump supported etcd version 2025-05-10 16:16:04 +08:00
Kubernetes Prow Robot
42634e39d3 Merge pull request #131673 from joshjms/etcd-fix-unit-tests
etcd: fix kubeadm unit tests
2025-05-08 14:39:22 -07:00
Kubernetes Prow Robot
fc78cdf3a6 Merge pull request #131674 from HirazawaUi/add-approver
add HirazawaUi to kubeadm approvers
2025-05-08 13:21:21 -07:00
Maciej Szulik
69682b75e5 Manually read verbosity before kubectl command construction
kubectl command construction is slowly getting more functionality which
sometimes requires to log certain actions. Currently we parse the
verbosity only when actually running the command, so all of construction
code is not able to use -v=5. This commit adds the manual parsing and
loglevel setting berore we even start creating the kubectl command.

Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-05-08 16:47:29 +02:00
HirazawaUi
ee4c6b90ce add HirazawaUi to kubeadm approvers list 2025-05-08 21:15:24 +08:00
joshjms
77b1236a52 fix: Kubernetes versions in unit tests
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-05-08 21:08:01 +08:00
carsontham
b9cb3cb333 update klog flags 2025-05-07 23:35:28 +08:00
Kubernetes Prow Robot
ef66667c8e Merge pull request #131243 from danwinship/kube-proxy-cleanup
Improve `kube-proxy --cleanup` / cleanup on kube-proxy mode switch
2025-05-06 09:29:13 -07:00
Antonio Ojea
9bcec340f8 modify unit test for compatibility version
Change-Id: Iacc4066e359d8c7e8fa2d2fab76262cfa50daebb
2025-05-06 13:29:55 +00:00
Antonio Ojea
15ab88f88b remove networking v1alpha1 and make update 2025-05-06 13:29:54 +00:00
Jordan Liggitt
6bb6c99342 Drop null creationTimestamp from test fixtures 2025-05-02 15:38:40 -04:00
Lubomir I. Ivanov
a6549edd1a kubeadm: use named ports for coredns probes
This is done for consistency as the coredns deployment already
had named ports.
2025-05-02 15:41:01 +03:00
logica0419
c5a2c69b94 add missing space in string concatenation (kubeadm) 2025-04-30 23:51:11 +09:00
logica0419
43a0da5880 add missing space in string concatenation (kube-proxy) 2025-04-30 23:35:25 +09:00
Kubernetes Prow Robot
c064ed8ed3 Merge pull request #130207 from carlory/cleanup-IncludeCloudLoops
remove outdate comment about pv controller
2025-04-30 06:37:56 -07:00
Ricardo Pchevuzinske Katz
68b1a950f9 kube-proxy should check global IPv6 enablement
IPv6 should also be checked if it is globally enabled. On nftables, today this
is hardcoded, so if a Linux Kernel disables IPv6 during its boot or doesn't
have IPv6 compiled, it will still try to use IPv6, which can lead to some
unexpected errors.

This change verifies if IPv6 is enabled by checking if the IPv6 network interfaces
proc file is available
2025-04-28 22:14:02 -03:00
Kubernetes Prow Robot
0abee6bd55 Merge pull request #131488 from sivchari/apply-slices-package
kubeadm: use slices package to reduce the codes
2025-04-28 03:07:28 -07:00
sivchari
494b2b563f use testing.TempDir and delete helper function
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2025-04-27 01:21:39 +09:00
sivchari
efcceee903 reduce assignment
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2025-04-27 00:33:07 +09:00
sivchari
f42ee7a2d6 use slices package to reduce the codes
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2025-04-26 23:08:02 +09:00
Kubernetes Prow Robot
629537d8c6 Merge pull request #131151 from yashsingh74/bump-coredns-1.12.1
Update coredns to v1.12.1
2025-04-25 07:52:57 -07:00
carlory
c0b2f341a7 clean up cloud provider code because cloud provider only supports empty or external and cloud is nil
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-04-25 10:19:05 +08:00
Kubernetes Prow Robot
d41e8bbc14 Merge pull request #128351 from mengjiao-liu/kube-controller-manager-support-context-for-NewBroadcaster
kube-controller-manager: also support context for record.NewBroadcaster
2025-04-23 19:30:29 -07:00
Kubernetes Prow Robot
d895ad2181 Merge pull request #131259 from pohly/etcd-output-and-retry
etcd: use Unix Domain socket
2025-04-23 17:10:05 -07:00
Kubernetes Prow Robot
c2d40b77aa Merge pull request #130782 from BernardMC/master
Kubeadm issue #3152 ControlPlane node setup failing with "etcdserver: can only promote a learner member"
2025-04-23 13:31:36 -07:00
Kubernetes Prow Robot
8a6b916765 Merge pull request #130720 from saintube/scheduler-expose-nodeinfo-in-prefilter
Expose NodeInfo to PreFilter plugins
2025-04-23 13:31:29 -07:00
David Eads
660df229bf Stop exposing list-via-watch from the server
With StreamingCollectionEncodingToJSON and
StreamingCollectionEncodingToProtobuf, the WatchList must re-justify its
necessity.  To prevent an ecosystem from building around a feature that
may not be promoted, we will stop serving list-via-watch until
performance numbers can justify its inclusion.

This also stops the kube-controller-manager from using the
list-via-watch by default.  The fallback is a regular list, so during
the skew during an upgrade the "right" thing will happen and the new
StreamingCollectionEncoding will be used.
2025-04-18 09:21:23 -04:00
Patrick Ohly
8672956f73 etcd: use Unix Domain socket for testserver
Choosing a port in advance is racy. A better solution is to use a Unix Domain
socket in the per-etcd-instance data directory. Then the name can be determined
in advance and there's no risk of conflicts with other etcd instances.

With unix:// for the endpoint, we have to be a bit more careful about
passing a TLS config to the etcd client library because for unix://, in
contrast to http://, it tries to use an incomplete config which
then fails to establish the connection.
2025-04-17 14:41:43 +02:00
Dan Winship
94530dad7b Move iptables/ipvs/ipset interface creation into CleanupLeftovers
This also fixes it so that ipvs.CleanupLeftovers only deletes
ipvs/ipset stuff once, rather than first deleting all of it on behalf
of the IPv4 Proxier and then no-op "deleting" it all again on behalf
of the IPv6 Proxier.
2025-04-10 09:03:25 -04:00
yashsingh74
302a850583 Update coredns version to v1.12.1
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2025-04-09 13:08:21 +05:30
joshjms
24edc6e90f Update etcd to 3.5.21
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-04-02 02:16:38 +08:00