Commit Graph

124537 Commits

Author SHA1 Message Date
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
Kubernetes Prow Robot
939edc7c6b
Merge pull request #127207 from SergeyKanzhelev/automated-cherry-pick-of-#126343-upstream-release-1.31
Automated cherry pick of #126343: Terminated pod should not be re-admitted
2024-09-09 22:05:54 +01:00
Kubernetes Prow Robot
8cf2eb9a9e
Merge pull request #127202 from SergeyKanzhelev/automated-cherry-pick-of-#127162-upstream-release-1.31
Automated cherry pick of #127162: Avoid SidecarContainers code path for non-sidecar pods
2024-09-09 20:51:57 +01:00
Gunju Kim
fc5d752394 Restart the init container to not be stuck in created state
The main sync loop should have created and started the container in one
step. If the init container is in the 'created' state, it's likely that
the container runtime failed to start it. To prevent the container from
getting stuck in the 'created' state, restart it.
2024-09-06 20:00:48 +00:00
Sergey Kanzhelev
8a28b17c3a succeeded pod is being re-admitted 2024-09-06 18:27:57 +00:00
Gunju Kim
8469207728 Avoid SidecarContainers code path for non-sidecar pods
This fixes a regression in the SidecarContainers feature by minimizing
the impact of the new code path. Use the old code path for pods without
restartable init containers, and apply the new code path only to pods
with restartable init containers.
2024-09-06 16:37:09 +00:00
Kubernetes Prow Robot
f67b92227c
Merge pull request #127100 from jsturtevant/automated-cherry-pick-of-#126976-upstream-release-1.31
Automated cherry pick of #126976: Revert "fix: handle socket file detection on Windows"
2024-09-04 09:28:16 +01:00
Kubernetes Prow Robot
6e744c6b04
Merge pull request #127066 from atiratree/automated-cherry-pick-of-#126920-upstream-release-1.31
Automated cherry pick of #126920: add missing RBAC to statefulset-controller for StatefulSetAutoDeletePVC feature
2024-09-04 08:14:55 +01:00
James Sturtevant
2454d8d4c3
Revert "fix: handle socket file detection on Windows"
This reverts commit 4060ee60c1.
2024-09-03 17:40:06 +00:00
Filip Křepinský
490bafcf41 add missing RBAC to statefulset-controller for StatefulSetAutoDeletePVC feature 2024-09-02 14:40:40 +02:00
Kubernetes Prow Robot
620c9ed34d
Merge pull request #126988 from saschagrunert/automated-cherry-pick-of-#126966-base-release-1.31
Automated cherry pick of #126966: Update cni-plugins to v1.5.1
2024-08-29 21:15:31 +01:00
Sascha Grunert
312b0386e8
Update cni-plugins to v1.5.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-29 09:13:54 +02:00
David Ashpole
924414d232
update vendor 2024-08-29 00:08:09 +00:00
David Ashpole
b42f8d32b5
fix memory leak from global MeterProvider 2024-08-29 00:05:38 +00:00
Kubernetes Prow Robot
90c6cfd414
Merge pull request #126974 from cpanato/update-go-1226-rel-131
[release-1.31] [go] Bump images, dependencies and versions to go 1.22.6 and distroless iptables
2024-08-28 21:27:51 +01:00
Kubernetes Prow Robot
6572754297
Merge pull request #126687 from wedaly/automated-cherry-pick-of-#126532-upstream-release-1.31
Automated cherry pick of #126532: kube-proxy: initialization wait for service and endpoint
2024-08-28 18:18:56 +01:00
cpanato
d539a38837
Bump images, dependencies and versions to go 1.22.6 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-08-28 16:33:54 +02:00
Kubernetes Prow Robot
6498fed36a
Merge pull request #126761 from thockin/automated-cherry-pick-of-#126749-upstream-release-1.31
Automated cherry pick of #126749: fix v1a3 ResourceSliceList metadata field name
2024-08-27 09:14:48 +01:00
Kubernetes Prow Robot
11476dfe74
Merge pull request #126721 from liggitt/automated-cherry-pick-of-#126720-upstream-release-1.31
Automated cherry pick of #126720: Switch DisableNodeKubeProxyVersion back to
2024-08-22 09:22:30 +01:00
Kubernetes Prow Robot
17f75a761b
Merge pull request #126796 from BenTheElder/automated-cherry-pick-of-#126449-upstream-release-1.31
Automated cherry pick of #126449: kube-up.sh: bump coreDNS to 1.11.3
2024-08-21 07:56:08 +01:00
Benjamin Elder
2197f54641 update coredns/corefile-migration to v1.0.23 to support coredns v1.11.3 2024-08-19 14:31:56 -07:00
Benjamin Elder
3301161c36 kubeadm: bump coredns to 1.11.3 2024-08-19 14:31:56 -07:00
Benjamin Elder
1f42675075 kube-up.sh: bump coreDNS to 1.11.3 2024-08-19 14:31:56 -07:00
Tim Hockin
62e601a95a
fix v1a3 ResourceSliceList metadata field name
This field was incorrectly named "listMeta" and was missed in review.
2024-08-17 12:12:57 -07:00
Jordan Liggitt
d8da86b16d
Switch DisableNodeKubeProxyVersion back to disabled-by-default
This is clearing a stable API field, so the 1 year from announcement to change period applies
2024-08-15 13:16:30 -04:00
Kubernetes Prow Robot
4d8e197743
Merge pull request #126670 from liggitt/automated-cherry-pick-of-#126665-upstream-release-1.31
Automated cherry pick of #126665: Restore honoring --version build ID overrides
2024-08-15 08:49:50 -07:00
Kubernetes Prow Robot
60a402c924
Merge pull request #126691 from Huang-Wei/automated-cherry-pick-of-#126644-upstream-release-1.31
Automated cherry pick of #126644: fix a scheduler preemption issue that victim is not patched
2024-08-14 23:57:18 -07:00
Wei Huang
9eec84c67f
fix a scheduler preemption issue that victim is not patched properly 2024-08-14 11:48:11 -07:00
Will Daly
f520ede814 kube-proxy: initialization wait for service and endpoint handlers synced
Ensure kube-proxy waits for the services/endpointslices informer
caches to be synced *and* all pre-sync events delivered before
setting isInitialized=true. Otherwise, in clusters with many services,
some services may be missing from svcPortMap when kube-proxy starts
(e.g. during daemonset rollout). This can cause kube-proxy to temporarily
remove service DNAT rules and then skip cleanup of UDP conntrack entries
to a service VIP.

Resolves: https://github.com/kubernetes/kubernetes/issues/126468
2024-08-14 09:02:23 -07:00
Jordan Liggitt
906d15782c
Restore honoring --version build ID overrides 2024-08-13 21:52:32 -04:00
Kubernetes Release Robot
8991b8ea60 Update CHANGELOG/CHANGELOG-1.31.md for v1.31.0 2024-08-13 07:56:14 +00:00
Kubernetes Release Robot
9edcffcde5 Release commit for Kubernetes v1.31.0 2024-08-13 07:28:48 +00:00
Kubernetes Release Robot
57846e1f1f Merge remote-tracking branch 'origin/master' into release-1.31 2024-08-12 17:36:54 +00:00
Kubernetes Prow Robot
099a88370d
Merge pull request #126638 from soltysh/fix_wait
wait: don't lowercase condition in --for argument
2024-08-12 09:10:55 -07:00
Maciej Szulik
fad6c424ac
wait: don't lowercase condition in --for argument 2024-08-12 16:59:17 +02:00
Kubernetes Release Robot
3ea02487b0 Merge remote-tracking branch 'origin/master' into release-1.31 2024-08-06 10:57:57 +00:00
Kubernetes Release Robot
60c4c2b252 CHANGELOG: Update directory for v1.31.0-rc.1 release 2024-08-06 06:14:49 +00:00
Kubernetes Release Robot
a24dafae31 Update CHANGELOG/CHANGELOG-1.31.md for v1.31.0-rc.1 2024-08-06 06:14:49 +00:00
Kubernetes Release Robot
773467353b Release commit for Kubernetes v1.31.0-rc.1 2024-08-06 05:54:56 +00:00
Kubernetes Release Robot
1d1cc29e6c Merge remote-tracking branch 'origin/master' into release-1.31 2024-08-04 04:51:47 +00:00
Kubernetes Prow Robot
00236ae0d7
Merge pull request #126519 from dims/bjhaid-bjhaid-topology-verbosity-take-2
[kube-proxy] add log verbosity to endpoint topology hint loop - Take 2
2024-08-03 16:54:37 -07:00
Davanum Srinivas
4fc6d8daf5
[kube-proxy] add log verbosity to endpoint topology hint loop - Take 2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-08-02 22:28:51 -04:00
Kubernetes Release Robot
12cc220a2a Merge remote-tracking branch 'origin/master' into release-1.31 2024-08-01 16:51:27 +00:00
Kubernetes Prow Robot
dbc2b0a5c7
Merge pull request #126383 from Shubham82/correct_comment_for_StableLoadBalancerNodeSet
Update the Comment for StableLoadBalancerNodeSet Feature Gate.
2024-08-01 07:20:02 -07:00
Kubernetes Release Robot
cb08f03fac Merge remote-tracking branch 'origin/master' into release-1.31 2024-07-31 22:46:25 +00:00