Commit Graph

124481 Commits

Author SHA1 Message Date
carlory
04f5b20388 kubelet: Fix the volume manager did't check the device mount state in the actual state of the world before marking the volume as detached. It may cause a pod to be stuck in the Terminating state due to the above issue when it was deleted. 2024-12-03 09:47:51 +08:00
Kubernetes Prow Robot
b73931a601
Merge pull request #128806 from adrianmoisey/automated-cherry-pick-of-#128305-upstream-release-1.31
Automated cherry pick of #128305: Ensure that a node's CIDR isn't released until the node is deleted
2024-11-26 20:02:56 +00:00
Kubernetes Prow Robot
d89400fbde
Merge pull request #128912 from cpanato/update-go-131
[release-1.31][go] Bump images, dependencies and versions to go 1.22.9 and distroless iptables
2024-11-25 09:20:56 +00:00
cpanato
779a0827ab
Bump images, dependencies and versions to go 1.22.9 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-11-21 14:55:35 +01:00
Kubernetes Release Robot
953a3a8aa6 Update CHANGELOG/CHANGELOG-1.31.md for v1.31.3 2024-11-19 14:02:11 +00:00
Kubernetes Release Robot
c83cbee114 Release commit for Kubernetes v1.31.3 2024-11-19 13:48:19 +00:00
Adrian Moisey
ea299acf97
Ensure that a node's CIDR isn't released until the node is deleted
Fixes https://github.com/kubernetes/kubernetes/issues/127792

Fixes bug where a node's PodCIDR was released when the node was given a
delete time stamp, but was hanging around due to a finalizer.
2024-11-14 20:00:41 +02:00
Kubernetes Prow Robot
11d2b4d7ed
Merge pull request #128340 from googs1025/automated-cherry-pick-of-#127834-upstream-release-1.31
Automated cherry pick of #127834: fix(leaderelection): nil check in OnStoppedLeading func
2024-11-12 10:18:46 +00:00
Kubernetes Prow Robot
f7d6fad111
Merge pull request #128431 from NoicFank/automated-cherry-pick-of-#128307-upstream-release-1.31
Automated cherry pick of #128307: bugfix(scheduler): preemption picks wrong victim node with higher priority pod on it
2024-11-12 09:13:07 +00:00
Kubernetes Prow Robot
c9e75e73f4
Merge pull request #128236 from carlory/automated-cherry-pick-of-#128182-upstream-release-1.31
Automated cherry pick of #128182: Fix crash on kube manager's service-lb-controller after v1.31.0.
2024-11-12 09:13:00 +00:00
Kubernetes Prow Robot
dd898b82d0
Merge pull request #127584 from AxeZhan/automated-cherry-pick-of-#125398-upstream-release-1.31
Automated cherry pick of #125398: [scheduler] When the hostname and nodename of a node do not match, ensure that pods carrying PVs with nodeAffinity are scheduled correctly.
2024-11-12 09:12:53 +00:00
Kubernetes Prow Robot
19f244ad5c
Merge pull request #128376 from mengjiao-liu/update-metrics-docs-1-31
Update metrics documentation for v1.31
2024-11-12 06:46:45 +00:00
Kubernetes Prow Robot
f6f4d800c8
Merge pull request #128530 from wojtek-t/automated-cherry-pick-of-#128468-upstream-release-1.31
Automated cherry pick of #128468: Fix TestCacherDontMissEventsOnReinitialization test
2024-11-06 15:43:29 +00:00
Wojciech Tyczyński
7682b74271 Fix TestCacherDontMissEventsOnReinitialization test 2024-11-04 09:25:58 +01:00
Kubernetes Prow Robot
6d1bcd738f
Merge pull request #127928 from p0lyn0mial/automated-cherry-pick-of-#127902-upstream-release-1.31
Automated cherry pick of #127902: server/config: assing system:apiserver user to system:authenticated group
2024-11-01 00:15:26 +00:00
NoicFank
2d540ade5f bugfix(scheduler): preemption picks wrong victim node with higher priority pod on it.
Introducing pdb to preemption had disrupted the orderliness of pods in the victims,
which would leads picking wrong victim node with higher priority pod on it.
2024-10-30 15:36:30 +08:00
Mengjiao Liu
9624086933 Update metrics documentation for v1.31 2024-10-28 15:33:54 +08:00
googs1025
c94baacfff fix(leaderelection): nil check in OnStoppedLeading func 2024-10-26 00:12:37 +08:00
Kubernetes Release Robot
1ef7d66879 Update CHANGELOG/CHANGELOG-1.31.md for v1.31.2 2024-10-22 20:52:27 +00:00
Kubernetes Release Robot
5864a46772 Release commit for Kubernetes v1.31.2 2024-10-22 20:28:12 +00:00
carlory
fb63fe6926 Fix crash on kube manager's service-lb-controller after v1.31.0.
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2024-10-22 10:19:54 +08:00
Kubernetes Prow Robot
f66782e8c4
Merge pull request #128132 from haitch/haitao/k131-on-go122p8
[release-1.31] bump golang to 1.22.8
2024-10-21 07:49:05 +01:00
Haitao Chen
de071d2739 bump golang to 1.22.8 2024-10-16 10:38:04 -07:00
Kubernetes Prow Robot
87bc649cbb
Merge pull request #127328 from xuzhenglun/automated-cherry-pick-of-#127239-github-release-1.31
Automated cherry pick of #127239: API emulation versioning honors cohabitating resources
2024-10-10 13:30:23 +01:00
Kubernetes Prow Robot
988235aa7f
Merge pull request #127960 from SataQiu/automated-cherry-pick-of-#127650-upstream-release-1.31
Automated cherry pick of #127650: kubeadm: fix a bug where the RemoveMember function did not return the correct member list when the member to be removed did not exist
2024-10-09 16:34:23 +01:00
SataQiu
5ff073516e kubeadm: fix a bug where the RemoveMember function did not return the correct member list when the member to be removed did not exist 2024-10-09 21:36:40 +08:00
Kubernetes Prow Robot
f1ca46fbc8
Merge pull request #127619 from SataQiu/automated-cherry-pick-of-#127491-upstream-release-1.31
Automated cherry pick of #127491: kubeadm: check whether the peer URL for the added etcd member already exists when the MemberAddAsLearner/MemberAdd fails
2024-10-09 12:50:29 +01:00
Kubernetes Prow Robot
36493b1849
Merge pull request #126983 from dashpole/fix_mem_leak_31
Cherrypick of #126957 on 1.31: Fix memory leak from global OpenTelemetry MeterProvider
2024-10-09 12:50:22 +01:00
Kubernetes Prow Robot
4a04b7261f
Merge pull request #127806 from danwinship/automated-cherry-pick-of-#127780-origin-release-1.31
Automated cherry pick of #127780: Fix deleted UDP endpoint detection
2024-10-09 11:42:22 +01:00
Lukasz Szaszkiewicz
32286d571d server/config: assing system:apiserver user to system:authenticated group 2024-10-08 14:12:25 +02:00
Kubernetes Prow Robot
192c1495bb
Merge pull request #127600 from haitch/haitao/k131-on-go122p7
[release-1.31] bump to go 1.22.7
2024-10-04 17:48:27 +01:00
Dan Winship
b84713348c Fix deleted UDP endpoint detection 2024-10-02 07:08:21 -04:00
SataQiu
0166d23783 kubeadm: check the member list status before adding or removing an etcd member 2024-09-25 19:23:15 +08:00
SataQiu
f22fd52e91 kubeadm: check whether the peer URL for the added etcd member already exists when the MemberAddAsLearner/MemberAdd fails 2024-09-25 19:23:15 +08:00
Haitao Chen
a732fb1167 bump to go 1.22.7 2024-09-24 10:25:43 -07:00
AxeZhan
d8d31947dc tests for nodes with different nodeName and name 2024-09-24 06:41:05 +00:00
AxeZhan
fdca80f8dc manually revert #109877 2024-09-24 06:41:05 +00:00
Kubernetes Prow Robot
c75e833026
Merge pull request #127347 from yuyabee/automated-cherry-pick-of-#127333-upstream-release-1.31
Automated cherry pick of #127333: Add activeDeadlineSeconds to kubeadm upgrade-health-check job
2024-09-24 02:01:59 +01:00
Kubernetes Prow Robot
e3be752b91
Merge pull request #127451 from swetharepakula/automated-cherry-pick-of-#127417-origin-release-1.31
Automated cherry pick of #127417: bugfix: endpoints controller track resource version
2024-09-19 23:51:39 +01:00
Kubernetes Prow Robot
1740b2ae7f
Merge pull request #127462 from dims/automated-cherry-pick-of-#127423-#127456-upstream-release-1.31
Automated cherry pick of #127423: Add some simple tests for nvidia GPU(s)
#127456: Install Nvidia Daemonset in test harness for GCE
2024-09-19 11:16:45 +01:00
Davanum Srinivas
21565fe16f
Install Nvidia Daemonset in test harness for GCE
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-09-18 21:11:16 -04:00
Davanum Srinivas
f4cd6ec052
Add some simple tests for nvidia GPU(s)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-09-18 21:11:15 -04:00
Yang Yang
dad9c77a74 bugfix: endpoints controller track resource version conrrectly
The endpoints controller store the resource version of the previous
Endpoints objects to avoid issues related to stale information on the
cache.

However, there can be update operations that succeed without increasing
the resource version, causing the endpoints controller to declare stale
the existing Resource Version and stopping the Endpoints to be updated.

Co-Author-By: Quan Tian <quan.tian@broadcom.com>
Co-Author-By: Yang Yang <yyyng@amazon.com>
2024-09-18 17:05:05 +00:00
Kubernetes Prow Robot
aae6745a67
Merge pull request #127413 from saschagrunert/automated-cherry-pick-of-#127151-base-release-1.31
Automated cherry pick of #127151: Remove `socat` and `ebtables` from kubeadm preflight checks
2024-09-18 09:36:46 +01:00
Sascha Grunert
e7090a9b9b
Remove socat and ebtables from kubeadm preflight checks
Follow-up on https://github.com/kubernetes/release/pull/3722

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-09-17 11:47:23 +02:00
Yuya Yabe
ebc460e8cc Add activeDeadlineSeconds to kubeadm upgrade-health-check job
With https://github.com/kubernetes/kubernetes/pull/122079,
kubeadm now relies on `ttlSecondsAfterFinished` to clean
up `upgrade-health-check` once its pod reaches a terminal state.
However, there is a case where the pod won't reach a terminal state and
the job will not register a terminal state, hence no garbage collection.

For example, if the pause image is not present, `ErrImagePull` will make
the pod keep retrying to pull the image and the pod will never reach a
terminal state on its own. And the job will continue to wait for the pod
to reach a terminal state which will not happen.

So we need to set `activeDeadlineSeconds` to prevent the job from
waiting forever for the pod to reach a terminal state.

Without this, users invoking `kubeadm upgrade plan` need to cleanup the
job outside of kubeadm even if they ignore the preflight result because
the job still runs when the result is configured to be ignored via
`--ignore-prelight-errors=CreateJob` flag.

Since the timeout for the polling in the `CreateJob` step in kubeadm
is 15 seconds, we should set the `activeDeadlineSeconds` to the same
timeout.
2024-09-13 14:26:09 +00:00
xuzhenglun
880e026a07
API emulation versioning honors cohabitating resources 2024-09-13 00:39:55 +08:00
Kubernetes Release Robot
1f7b707f26 Update CHANGELOG/CHANGELOG-1.31.md for v1.31.1 2024-09-11 21:41:40 +00:00
Kubernetes Release Robot
948afe5ca0 Release commit for Kubernetes v1.31.1 2024-09-11 21:22:07 +00:00
Kubernetes Prow Robot
a8a78f0da6
Merge pull request #127212 from SergeyKanzhelev/automated-cherry-pick-of-#126543-upstream-release-1.31
Automated cherry pick of #126543: Restart the init container to not be stuck in created state
2024-09-09 23:15:07 +01:00