Commit Graph

12371 Commits

Author SHA1 Message Date
Darren Shepherd
834b2acae4 Notify startup to grab a hold of handler and authenticator
Fix to the completed options config

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2025-04-23 13:20:06 -03:00
Darren Shepherd
4e407fa5b5 Add stopCh to apiserver & context to kublet commands
Remove SetupSignalContext call from the apiserver

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2025-04-23 13:20:06 -03:00
Darren Shepherd
be52e3dacc Hide deprecated warnings 2025-04-23 13:20:06 -03:00
Darren Shepherd
2e33e0695f Wait for kube-apiserver for 2 minutes for slow (ARM) systems 2025-04-23 13:20:06 -03:00
Darren Shepherd
f74b3e8c17 If you can't set hashsize on nf_conntrack don't fail 2025-04-23 13:20:06 -03:00
Darren Shepherd
97b7529135 Drop credential providers 2025-04-23 13:20:06 -03:00
Darren Shepherd
3b76a0d3df Drop storage plugins 2025-04-23 13:20:06 -03:00
Darren Shepherd
1cd6f9968c Drop client-go cloud auth 2025-04-23 13:20:06 -03:00
SataQiu
475334f995 kubeadm: fix panic when no UpgradeConfiguration was found in the config file 2025-02-20 15:21:35 +02:00
Lubomir I. Ivanov
4f9453c11d kubeadm: use the v1beta4 EtcdAPICall timeout for etcd calls
v1beta4 added the Timeouts struct and a EtcdAPICall timeout
field, but it was never used in the etcd client calls.

This is a bug, so it should be fixed, we also reduced
the timeout from 200 seconds exponentional backoff to 2 minute
linear default timeout.
2025-01-28 17:52:29 +02:00
Kubernetes Prow Robot
af62fde413 Merge pull request #129607 from neolit123/automated-cherry-pick-of-#129594-origin-release-1.31
Automated cherry pick of #129594: kubeadm: remove misplaced error during image pull
2025-01-28 04:21:25 -08:00
Kubernetes Prow Robot
d7fc7e30cb Merge pull request #129519 from kishen-v/automated-cherry-pick-of-#127422-upstream-release-1.31
Automated cherry pick of #127422: Fix Go vet errors for master golang
2025-01-22 11:10:37 -08:00
Lubomir I. Ivanov
aabc56c6ed kubeadm: remove misplaced error during image pull
During preflight when an image is pulled, if the sandbox image
check returns an error, the same error later blocks the actual
image pull.
2025-01-14 09:25:28 +02:00
Abhishek Kr Srivastav
9d10ddb060 Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2025-01-08 15:11:34 +05:30
SataQiu
ec1a3974ba kubeadm: fix a bug where the node.skipPhases in UpgradeNodeConfiguration is not respected by 'kubeadm upgrade node' 2025-01-02 15:01:34 +02: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
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
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
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
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
David Ashpole
b42f8d32b5 fix memory leak from global MeterProvider 2024-08-29 00:05:38 +00:00
Benjamin Elder
3301161c36 kubeadm: bump coredns to 1.11.3 2024-08-19 14:31:56 -07:00
Kubernetes Prow Robot
3a8a60eba2 Merge pull request #126240 from bzsuni/bz/etcd/update/v3.5.15
Update etcd to v3.5.15
2024-07-26 04:58:05 -07:00
Kubernetes Prow Robot
9a16c96d7b Merge pull request #126324 from pacoxu/v1beta4-typo
fix a typo in kubeadm v1beta4 doc
2024-07-25 13:06:02 -07:00
Paco Xu
bdb51f28df fix a typo in kubeadm v1beta4 doc 2024-07-25 22:01:04 +08:00
bzsuni
4ad2cd9299 Update etcd from v3.5.14 to v3.5.15
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-07-25 10:48:34 +08:00
Jefftree
fac7581640 feedback: leasecandidate clients 2024-07-24 14:38:12 +00:00
Dr. Stefan Schimanski
68226b0501 Review feedback
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-07-24 14:38:12 +00:00
Jefftree
c47ff1e1a9 CLE controller and client changes 2024-07-24 14:38:11 +00:00
Kubernetes Prow Robot
6834a1ef3d Merge pull request #126293 from aroradaman/kube-proxy-refactor-internal-config
Kube proxy refactor internal config
2024-07-23 11:02:46 -07:00
Kubernetes Prow Robot
fbdfb9d8d9 Merge pull request #126031 from harche/kubelet_cgroupv1_arg
KEP-4569: Kubelet option to disable cgroup v1 support
2024-07-23 09:21:11 -07:00
Daman Arora
3d589bd18a kube-proxy: internal config: remove PortRange
Remove PortRange for internal configuration of kube-proxy
adhering to the v1alpha2 version specifications as detailed in
https://kep.k8s.io/784.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-07-23 19:56:23 +05:30
Daman Arora
c57e1156f5 kube-proxy: internal config: refactor ClusterCIDR
Refactor ClusterCIDR for internal configuration of kube-proxy
adhering to the v1alpha2 version specifications as detailed in
https://kep.k8s.io/784.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-07-23 19:45:29 +05:30
Daman Arora
380adb93cc kube-proxy: internal config: consolidate SyncPeriod and MinSyncPeriod
Consolidate SyncPeriod and MinSyncPeriod for internal configuration
of kube-proxy adhering to the v1alpha2 version specifications as
detailed in https://kep.k8s.io/784.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-07-23 19:34:40 +05:30
Kubernetes Prow Robot
0344f29e83 Merge pull request #125778 from haitch/haitao/controllermgr-emulatever
add emulated-version flag to kube-controller-manager to control the feature gate.
2024-07-22 20:50:21 -07:00
Haitao Chen
1d92758ef0 implement emulated-version for kube-controller-manager 2024-07-22 16:07:18 -07:00
Kubernetes Prow Robot
581a073dc4 Merge pull request #125663 from saschagrunert/oci-volumesource-kubelet
[KEP-4639] Add `ImageVolumeSource` implementation
2024-07-22 15:48:33 -07:00
Sascha Grunert
979863d15c Add ImageVolumeSource implementation
This patch adds the kubelet implementation of the image volume source
feature.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-07-22 18:46:46 +02:00
Patrick Ohly
b51d68bb87 DRA: bump API v1alpha2 -> v1alpha3
This is in preparation for revamping the resource.k8s.io completely. Because
there will be no support for transitioning from v1alpha2 to v1alpha3, the
roundtrip test data for that API in 1.29 and 1.30 gets removed.

Repeating the version in the import name of the API packages is not really
required. It was done for a while to support simpler grepping for usage of
alpha APIs, but there are better ways for that now. So during this transition,
"resourceapi" gets used instead of "resourcev1alpha3" and the version gets
dropped from informer and lister imports. The advantage is that the next bump
to v1beta1 will affect fewer source code lines.

Only source code where the version really matters (like API registration)
retains the versioned import.
2024-07-21 17:28:13 +02:00
Kubernetes Prow Robot
815efa2baa Merge pull request #126250 from my-git9/pkiutil-consot
kubeadm: remove unused constants in util/pkiutil
2024-07-21 03:02:57 -07:00
Kubernetes Prow Robot
b14769f2af Merge pull request #126224 from neolit123/1.31-fix-bug-in-join-patches-healthz
kubeadm: fix join bug where kubeletconfig was not patched in memory
2024-07-20 14:27:24 -07:00
Lubomir I. Ivanov
b90b280c5a kubeadm: fix join bug where kubeletconfig was not patched in memory
During kubeadm join in 1.30 kubeadm started respecting
the kubeletconfiguration healthz address/port. Previously
it hardcoded the health check to localhost:defaultport.

A corner case was not handled where the user applies --patches
on join to modify the local kubeletconfiguration. This results
in kubeletconfiguration patch target patches not being applied to
the KubeletConfiguration in memory and the health check
running on the address:port which are present in the kubelet-config
configmap.

Fix that by explicitly calling a new function to patch the
KubeletConfiguration in memory. This is scoped to only handle
the healthz checks *after* the kubelet config.yaml was already
patched and written to disk.
2024-07-20 19:31:19 +03:00
xin.li
c1dca0ad7c kubeadm: remove unused constants in util/pkiutil
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-07-20 23:30:25 +08:00
Monis Khan
6a6771b514 svm: set UID and RV on SSA patch to cause conflict on logical create
When a resource gets deleted during migration, the SVM SSA patch
calls are interpreted as a logical create request.  Since the object
from storage is nil, the merged result is just a type meta object,
which lacks a name in the body.  This fails when the API server
checks that the name from the request URL and the body are the same.
Note that a create request is something that SVM controller should
never do.

Once the UID is set on the patch, the API server will fail the
request at a slightly earlier point with an "uid mismatch" conflict
error, which the SVM controller can handle gracefully.

Setting UID by itself is not sufficient.  When a resource gets
deleted and recreated, if RV is not set but UID is set, we would get
an immutable field validation error for attempting to update the
UID.  To address this, we set the resource version on the SSA patch
as well.  This will cause that update request to also fail with a
conflict error.

Added the create verb on all resources for SVM controller RBAC as
otherwise the API server will reject the request before it fails
with a conflict error.

The change addresses a host of other issues with the SVM controller:

1. Include failure message in SVM resource
2. Do not block forever on unsynced GC monitor
3. Do not immediately fail on GC monitor being missing, allow for
   a grace period since discovery may be out of sync
4. Set higher QPS and burst to handle large migrations

Test changes:

1. Clean up CRD webhook convertor logs
2. Allow SVM tests to be run multiple times to make finding flakes easier
3. Create and delete CRs during CRD test to force out any flakes
4. Add a stress test with multiple parallel migrations
5. Enable RBAC on KAS
6. Run KCM directly to exercise wiring and RBAC
7. Better logs during CRD migration
8. Scan audit logs to confirm SVM controller never creates

Signed-off-by: Monis Khan <mok@microsoft.com>
2024-07-18 17:19:11 -04:00
Harshal Patil
fff2b7f566 Kubelet option to disable cgroup v1 support
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2024-07-18 14:00:21 -04:00
Lukasz Szaszkiewicz
2f5394567e Revert "kube-controller-manager: enable WatchListClient"
This reverts commit 825091693d.
2024-07-18 09:29:53 +02:00