Commit Graph

132192 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ea5d59e754 Merge pull request #138385 from hoskeri/automated-cherry-pick-of-#134193-upstream-release-1.34
Automated cherry pick of #134193: Fix IPv6 allocator for /64 CIDRs
2026-05-08 18:35:19 +05:30
Kubernetes Prow Robot
96c9676d7c Merge pull request #138804 from neolit123/automated-cherry-pick-of-#138692-origin-release-1.34
Automated cherry pick of #138692: kubeadm: skip LocalAPIEndpoint defaulting on worker join
2026-05-08 17:21:16 +05:30
Seena Fallah
8e92749f0f kubeadm: skip LocalAPIEndpoint defaulting on worker join
FetchInitConfigurationFromCluster always called SetAPIEndpointDynamicDefaults,
which invokes ChooseAPIServerBindAddress and requires a default route on the
host. Worker nodes joining the cluster don't need a LocalAPIEndpoint and may
legitimately have no default route, causing kubeadm join to fail with:

```
unable to fetch the kubeadm-config ConfigMap: unable to select an IP from
default routes.
```

Add a skipAPIEndpoint parameter to SetInitDynamicDefaults and pass
`!getAPIEndpoint` from FetchInitConfigurationFromCluster, so the endpoint
defaulter is bypassed when the caller did not request the endpoint (worker
join, non-control-plane reset/certs/upgrade paths).

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2026-05-06 11:09:13 +02:00
Kubernetes Prow Robot
358698b866 Merge pull request #138637 from aojea/automated-cherry-pick-of-#138571-upstream-release-1.34
Automated cherry pick of #138571: kube-proxy: don't do full periodic syncs on large cluster mode
2026-05-06 07:52:20 +05:30
Kubernetes Prow Robot
26556cd9a2 Merge pull request #138685 from neolit123/automated-cherry-pick-of-#138449-origin-release-1.34
Automated cherry pick of #138449: kubeadm: use the localAPIEndpoint for all API calls in 'init'
2026-05-05 21:22:23 +05:30
Kubernetes Prow Robot
6b941f8fb5 Merge pull request #138601 from princepereira/automated-cherry-pick-of-#138000-upstream-release-1.34
Automated cherry pick of #138000: Delete remote endpoint if it has same ip as local endpoint in the system.
2026-05-05 08:04:22 +05:30
Lubomir I. Ivanov
d0c333c3df kubeadm: use the localAPIEndpoint for all API calls in 'init'
Historicaly the kubeadm clients have used the 'admin.conf'
and 'super-admin.conf' directly, which makes all API calls
go trough the CPE (control plane endpoint). This can create
problems for scenarios when the LB is provisioned only after
'init' starts the kube-apiserver.

Instead of using the '.conf' as they are, modify them
in memory to point to the LAE (localAPIEndpoint).
This was already done by the WaitControlPlaneClient for
the WaitControlPlane phase, which required it. This separate
client is no longer needed.

However, do use a unmodified kubeconfig to the init phase
bootstrap-token since this is the phase that creates
the cluster-info CM and for that we need the original CPE
server address.
2026-04-29 17:43:52 +02:00
Antonio Ojea
2df7128224 kube-proxy: don't do full periodic syncs on large cluster mode
Periodic full-syncs are just reconcile loops just in case somehow
the dataplane has drifted, however, they have an important cost on large
clusters.

We can avoid to perform full-sync if kube-proxy is in the "largecluster"
mode, we are already doing some optimization, so it is reasonable to
avoid the penalty of a full sync for a "just in case" operation.

Signed-off-by: Antonio Ojea <aojea@google.com>
2026-04-28 07:50:06 +00:00
Prince Pereira
ce035f3a11 Delete remote endpoint if it has same ip as local endpoint in the system. 2026-04-26 09:52:12 +00:00
Prince Pereira
b13bd47041 Delete remote endpoint if it has same ip as local endpoint in the system. 2026-04-26 09:52:12 +00:00
Kubernetes Prow Robot
5e9c8f7def Merge pull request #138540 from ahrtr/automated-cherry-pick-of-#138403-upstream-release-1.34
Automated cherry pick of #138403: kubeadm: Evaluate etcd cluster health using quorum
2026-04-23 18:46:48 +05:30
Benjamin Wang
a15a8c9795 Add a (*Client) addEndpoint method
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2026-04-23 09:15:42 +01:00
Benjamin Wang
ca1b774484 Evaluate etcd cluster health using quorum
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2026-04-23 09:15:42 +01:00
Kubernetes Prow Robot
d5ee4e9398 Merge pull request #138435 from Argh4k/automated-cherry-pick-of-#138324-upstream-release-1.34
Automated cherry pick of #138324: scheduler: fix inFlightPods leak when pod is recreated during scheduling failure
2026-04-22 18:57:52 +05:30
Samarth Verma
df429e2556 scheduler: address recreated pod review feedback 2026-04-17 07:09:19 +00:00
Samarth Verma
d7fec89097 scheduler: skip requeueing recreated pods on scheduling failure 2026-04-17 07:06:31 +00:00
Samarth Verma
0fbabbac98 scheduler: fix inFlightPods leak when pod is recreated during scheduling failure
handleSchedulingFailure can refresh podInfo from the informer before AddUnschedulableIfNotPresent. A delete and recreate with the same name may change the Pod UID while inFlightPods still tracks the UID from Pop, so Done and queueing-hint lookups must use that in-flight UID.

Add an explicit in-flight UID parameter, thread it through queueing-hint lookups, cover the same-name recreation case with a regression test, and check the returned error in updated test call sites.
2026-04-17 07:04:00 +00:00
Kubernetes Release Robot
96119999dc Update CHANGELOG/CHANGELOG-1.34.md for v1.34.7 2026-04-15 18:20:20 +00:00
Kubernetes Release Robot
66d3c15b9a Release commit for Kubernetes v1.34.7 v1.34.7 2026-04-15 18:09:03 +00:00
Abhijit Hoskeri
da7c39f849 Fix IPv6 allocator for /64 CIDRs
An ipAllocator with a 64 bit IPv6 CIDR can allocate
addresses outside the CIDR range, due to an improper uint64 to int64
cast in the addOffsetAddress function.

Replace the cast with a call to `math/big.Int.SetUint64()`.
2026-04-14 13:20:04 -07:00
Kubernetes Prow Robot
ca12702454 Merge pull request #138357 from dims/update-moby-spdystream-v0.5.1-1.34
[1.34] Update github.com/moby/spdystream from v0.5.0 to v0.5.1
2026-04-14 19:18:39 +05:30
Kubernetes Prow Robot
678244eee1 Merge pull request #138349 from dashpole/update_prop_34
[release-1.34] Update go.opentelemetry.io/otel to v1.41.0
2026-04-14 07:00:36 +05:30
Davanum Srinivas
4b3d41fae7 Update github.com/moby/spdystream from v0.5.0 to v0.5.1
Kubernetes-commit: 7e9c2c8eef26f99aa2f94d8e09d6d32de86c7769
2026-04-13 14:22:13 -04:00
David Ashpole
27f03ccf2d update go.opentelemetry.io/otel to v1.41.0 2026-04-13 14:42:47 +00:00
Kubernetes Prow Robot
a48ef21c6a Merge pull request #138027 from zxqlxy/local-cherry-pick-135485-v1.34
Cherry pick of #135485: Fix device plugin admission failure after container restart
2026-04-10 04:02:18 +05:30
Kubernetes Prow Robot
4e5772e126 Merge pull request #138305 from xmudrii/update-go-1.34
[release-1.34] Bump images and versions to go 1.25.9 and distroless iptables
2026-04-10 02:42:26 +05:30
Marko Mudrinić
e9820abb8b Bump images and versions to go 1.25.9 and distroless iptables
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2026-04-09 21:57:12 +02:00
Kubernetes Prow Robot
a8c111a548 Merge pull request #137997 from varshadeshmane92/automated-cherry-pick-of-#133624-upstream-release-1.34
Automated cherry pick of #133624: Fix flaking RunTestDelayedWatchDelivery
2026-04-09 23:26:21 +05:30
Kubernetes Prow Robot
8bc6e2d550 Merge pull request #138150 from liggitt/go-1-25-release-1-34
[release-1.34] Bump to go 1.25.8
2026-04-09 15:17:37 +05:30
Jordan Liggitt
8d6ca236a0 Bump to go 1.25 2026-04-01 17:21:10 -04:00
Francesco Romani
9c0f626e6d podresources: filter out inactive pods in Get()
Currently the provider that the podresources API
consumes does *not* obviously filters out the terminal
pod, and this is corroborated by the fact the related
e2e test starts to fail.
We had a bug in the test which masked the real failure,
but now it's evident.

So we perform a trivial extraction of the kubelet filtering
code and we apply in both places.
Note that the existing flow is unaffected except for the
trivial code extraciton.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2026-03-30 20:12:45 +00:00
Francesco Romani
aa1f18ea7d e2e: node: podresources: fix expectations for Get() and terminated pods
terminated pods should not be reported by Get() calls,
we should get an error instead

Signed-off-by: Francesco Romani <fromani@redhat.com>
2026-03-30 20:12:44 +00:00
Sascha Grunert
5dea39fc01 Fix device plugin admission failure after container restart
When a container restarts before kubelet restarts, containerMap has
multiple entries (old exited + new running). GetContainerID() may
return the exited container, causing the running check to fail. Fixed
by checking if ANY container for the pod/name is running.

Also filter terminal pods from podresources since they no longer
consume resources, and fix test error handling to avoid exiting
Eventually immediately on transient errors.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2026-03-26 21:45:29 +00:00
Kubernetes Prow Robot
808ebe63af Merge pull request #136282 from chaochn47/automated-cherry-pick-of-#135685-upstream-release-1.34
Automated cherry pick of #135685: Bugfix: calculate request latency properly in audit log filter
2026-03-26 21:20:19 +05:30
Marek Siarkowicz
0b87e643e7 Fix flaking RunTestDelayedWatchDelivery 2026-03-24 02:17:31 -07:00
Kubernetes Prow Robot
51ba107046 Merge pull request #137808 from danwinship/automated-cherry-pick-of-#137501-origin-release-1.34
Automated cherry pick of #137501: Fix kube-proxy on systems with nft 1.1.3 (take 2)
2026-03-19 18:10:32 +05:30
Kubernetes Release Robot
f95ab204b3 Update CHANGELOG/CHANGELOG-1.34.md for v1.34.6 2026-03-18 19:27:20 +00:00
Kubernetes Release Robot
8b2bf66ce7 Release commit for Kubernetes v1.34.6 v1.34.6 2026-03-18 19:15:56 +00:00
Alessio Attilio
77ba3a841e pkg/proxy/nftables: fix kube-proxy crash with newer nftables versions
Fixes kube-proxy's nftables mode to work on systems with nft 1.1.3.
2026-03-17 08:10:07 -04:00
Dan Winship
82db8918d3 Update knftables to v0.0.21 2026-03-17 08:10:07 -04:00
Kubernetes Prow Robot
9aae4d4ddc Merge pull request #137643 from BenTheElder/no-rules-1.34
drop publishing rules from dependencies.yaml on release-1.34
2026-03-12 06:21:35 +05:30
Benjamin Elder
87990decd2 drop publishing rules from dependencies.yaml on release branch
We only use the rules in the master branch.

Since we don't need rules.yaml, we don't have two places to match, so we can drop the golang version entirely from this file

bump .go-version alone will be sufficient* on release branches after kubernetes#136954

* ignoring e2e images like agnhost, which will require follow-up PRs ...
2026-03-11 12:55:56 -07:00
Kubernetes Prow Robot
537ab630b2 Merge pull request #137570 from fuweid/cp-1374942-134
[release-1.34] cmd/kubeadm: ignore EINVAL error during unmount
2026-03-11 21:17:36 +05:30
Kubernetes Prow Robot
bcd1ef31ef Merge pull request #137258 from ahrtr/automated-cherry-pick-of-#137251-upstream-release-1.34
Automated cherry pick of #137251: kubeadm: do not add learner member to etcd client endpoints
2026-03-11 16:23:38 +05:30
Wei Fu
da50ffde17 cmd/kubeadm: ignore EINVAL error during unmount
If /var/lib/kubelet is MS_SHARED mountpoint, all the mountpoints
under /var/lib/kubelet will have duplicate one. When `kubeadm reset -f`
is executed, it will try to umount one path twice. However, they are in
the peer group. Once we umount one path, the duplicate one will be
umounted as well. So, in this case, we should ignore EINVAL error.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 2634261c17)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-03-09 10:20:21 -04:00
Kubernetes Prow Robot
3b27d54731 Merge pull request #136386 from vikasbolla/automated-cherry-pick-of-#135567-upstream-release-1.34
[release1.34]Automated cherry pick of #135567: Fix flaky TestApplyCRDuringCRDFinalization test
2026-03-03 16:13:20 +05:30
Kubernetes Prow Robot
4b165951b9 Merge pull request #137077 from varshadeshmane92/automated-cherry-pick-of-#133360-upstream-release-1.34
Automated cherry pick of #133360: fix: parsing the patch directly
2026-03-03 14:57:29 +05:30
Kubernetes Prow Robot
9e5e5ce16e Merge pull request #136832 from varshadeshmane92/automated-cherry-pick-of-#134754-upstream-release-1.34
Automated cherry pick of #134754: Use fast policy refresh interval for TestParamRef
2026-03-03 14:57:21 +05:30
Kubernetes Release Robot
7c49a01f34 Update CHANGELOG/CHANGELOG-1.34.md for v1.34.5 2026-02-26 20:14:53 +00:00
Kubernetes Release Robot
ebfac05736 Release commit for Kubernetes v1.34.5 v1.34.5 2026-02-26 20:03:29 +00:00